rollup.config.js 305 字节 编辑Web IDE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 import esbuild from 'rollup-plugin-esbuild'; export default { input: 'src/index.ts', output: { file: 'dist/index.umd.js', format: 'umd', name: 'DefaultViewLayout', }, plugins: [ esbuild({ tsconfig: 'tsconfig.json', minify: true, target: 'es2018', }), ], };