1 Star 0 Fork 0

jzphp/ChatUI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rollup.config.js 832 Bytes
一键复制 编辑 原始数据 按行查看 历史
akai 提交于 2021-03-09 22:55 . build(rollup): export version for UMD
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import { terser } from 'rollup-plugin-terser';
import pkg from './package.json';
const name = 'ChatUI';
const extensions = ['.js', '.jsx', '.ts', '.tsx'];
export default {
input: './src/index.ts',
external: ['react', 'react-dom'],
plugins: [
resolve({ extensions }),
commonjs(),
babel({
extensions,
babelHelpers: 'runtime',
include: ['src/**/*'],
}),
terser({
output: { comments: false },
compress: { drop_console: true },
}),
],
output: {
file: pkg.browser,
format: 'umd',
name,
globals: {
react: 'React',
'react-dom': 'ReactDOM',
},
intro: `exports.version = '${pkg.version}';`,
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jzphp/ChatUI.git
git@gitee.com:jzphp/ChatUI.git
jzphp
ChatUI
ChatUI
next

搜索帮助