With only one output entry in my rollup.config.js like so:
export default {
input: './src/Index.tsx',
output: {
dir: './myBundle/bundle',
format: 'iife',
sourcemap: true,
},
plugins: [
typescript(),
nodeResolve(),
commonjs(),
babel(),
json(),
terser(),
],
};
Why does Rollup accuse me of code-splitting?
[!] Error: UMD and IIFE output formats are not supported for code-splitting builds.
Encountered this problem using Routify. Adding inlineDynamicImports: true in rollup.config.js solved the problem for me
export default {
input: "src/main.ts",
output: {
sourcemap: true,
format: "iife",
name: "app",
file: "public/build/bundle.js",
inlineDynamicImports: true, //Add this
},
svelte - import dependency package with error
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With