In my rollup.config.js
file, I have only one output
entry defined as follows:
export default {
input: './src/Index.tsx',
output: {
dir: './myBundle/bundle',
format: 'iife',
sourcemap: true,
},
plugins: [
typescript(),
nodeResolve(),
commonjs(),
babel(),
json(),
terser(),
],
};
I'm puzzled as to why Rollup is flagging this as code-splitting:
[!] Error: UMD and IIFE output formats are not supported for code-splitting builds.