1 Star 0 Fork 5

奚帅帅/excelize-wasm

forked from xuri/excelize-wasm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rollup.config.js 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
import commonjs from '@rollup/plugin-commonjs';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import terser from '@rollup/plugin-terser';
const input = 'src/index.js';
export default [
{
// Plain browser <script>
input,
output: {
file: './dist/index.js',
format: 'iife',
generatedCode: 'es2015',
name: 'excelizeWASM',
sourcemap: false,
},
plugins: [
nodeResolve(),
terser()
]
},
{
// ES6 module and <script type="module">
input,
output: {
file: './dist/main.js',
format: 'esm',
generatedCode: 'es2015',
sourcemap: false,
},
plugins: [
nodeResolve(),
terser()
]
},
{
// CommonJS Node module
input,
output: {
file: './dist/main.cjs',
format: 'cjs',
generatedCode: 'es2015',
sourcemap: false,
},
external: ['path', 'fs'],
plugins: [
commonjs(),
nodeResolve(),
terser()
]
}
];
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/xishuai416/excelize-wasm.git
git@gitee.com:xishuai416/excelize-wasm.git
xishuai416
excelize-wasm
excelize-wasm
main

搜索帮助