-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
Documentation Is:
- Missing
- Needed
- Confusing
- Not Sure?
Please Explain in Detail...
I have a library of components. Let's say I have
- packageA
- index.js
- packageB
- index.js
I'd like this to be on configuration:
export default [
{
input: ['packages/A/index.js', 'packages/B/index.js'],
output: {
name: '[name]Bundle',
file: '[name].umd.js',
format: 'umd'
}
},
];
I expect this to output an A/index.umd.js and a B/index.umd.js file, but I get [!] Error: UMD and IIFE output formats are not supported for code-splitting builds.
. If I change format
--> esm
, cjs
, etc. it works as expected. I couldn't find any documentation to achieve this with iife/UMD.
I also went on gitter, but didn't hear from anyone.
Your Proposal for Changes
Some documentation to how to build multiple umd files from multiple entry files.
gkutiel, rowthan, fractalo and wensiyuanseven