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.
require
into my bundle, which is not defined in the browser. – Lifesaver