1 Star 4 Fork 2

cedar12/tezero

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rollup.config.mjs 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
cedar12 提交于 2023-10-31 17:48 +08:00 . 新增打开本地画面数据
import { terser } from 'rollup-plugin-terser';
// import commonjs from '@rollup/plugin-commonjs';
import commonjs from 'rollup-plugin-commonjs';
import typescript from 'rollup-plugin-typescript2';
import clear from 'rollup-plugin-clear';
import copy from 'rollup-plugin-copy';
import resolve from 'rollup-plugin-node-resolve';
import nodePolyfills from 'rollup-plugin-node-polyfills';
import babelPlugin from 'rollup-plugin-babel';
import wasmModule from 'rollup-plugin-wasm-module';
export default {
input: 'lib/index.ts',
output: {
file: 'dist/index.min.js',
format: 'umd',
name: 'tezero',
sourcemap: true,
exports: 'named',
},
plugins: [
clear({
targets: ["dist"],
}),
typescript({ tsconfig: './tsconfig.json' }),
commonjs(),
resolve(),
terser(),
nodePolyfills(),
babelPlugin({
exclude: "node_modules/**",
runtimeHelpers: true,
}),
wasmModule({
options:{
}
}),
copy({
targets: [
{ src: 'node_modules/wasm-gzip/wasm_gzip_bg.wasm', dest: 'dist' }
]
})
],
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/cedar12/tezero.git
git@gitee.com:cedar12/tezero.git
cedar12
tezero
tezero
master

搜索帮助