output我的只有一项rollup.config.js:
export default {
input: './src/Index.tsx',
output: {
dir: './myBundle/bundle',
format: 'iife',
sourcemap: true,
},
plugins: [
typescript(),
nodeResolve(),
commonjs(),
babel(),
json(),
terser(),
],
};
Run Code Online (Sandbox Code Playgroud)
为什么 Rollup 指责我进行代码分割?
[!] Error: UMD and IIFE output formats are not supported for code-splitting builds.