1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/jd-platform-opensource-ccms

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
rollup.config.js 1 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
zjt Отправлено 24.04.2022 10:34 bba45cd
import path from 'path'
import ts from 'rollup-plugin-typescript2'
import { nodeResolve } from '@rollup/plugin-node-resolve'
import { babel } from '@rollup/plugin-babel'
import commonjs from '@rollup/plugin-commonjs'
import { eslint } from 'rollup-plugin-eslint'
import json from '@rollup/plugin-json'
import { terser } from 'rollup-plugin-terser'
export default {
input: 'src/index.tsx',
output: [
{
format: 'esm',
file: path.resolve('dist/index.esm.js')
}
],
plugins: [
json(),
// eslint({
// throwOnError: true,
// exclude: ['node_modules/**', 'es/**', 'dist/**']
// }),
ts({
tsconfig: path.resolve(__dirname, 'tsconfig.json')
}),
babel({
babelHelpers: 'runtime',
exclude: 'node_modules/**'
}),
commonjs(),
nodeResolve({
extensions: ['.js', '.ts', '.tsx']
}),
terser()
],
external: ['react', 'react-dom', 'marked', 'lodash', 'axios', 'query-string', 'moment', 'qiankun'],
watch: {
include: 'src/**'
}
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/jd-platform-opensource-ccms.git
git@api.gitlife.ru:oschina-mirror/jd-platform-opensource-ccms.git
oschina-mirror
jd-platform-opensource-ccms
jd-platform-opensource-ccms
master