egoist / bili

Bili makes it easier to bundle JavaScript libraries.

Home Page:https://bili.egoist.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bundling multiple UMD bundles using 'array' syntax

chopfitzroy opened this issue · comments

Hello,

As seen in this rollup issue the only way to handle multiple (named) UMD builds is using the array syntax:

[
	{
		input: 'packages/A/index.js',
		output: {
			name: '[name]Bundle',
			file: '[name].umd.js',
			format: 'umd'
		}
	},
	{
		input: 'packages/B/index.js',
		output: {
			name: '[name]Bundle',
			file: '[name].umd.js',
			format: 'umd'
		}
	}
];

Is it possible to do something like this with Bili?

commented

Not supported for now. But you can write two custom bili config and execute them independently. Such as yarn bili -c bili.config.a.js and yarn bili -c bili.config.b.js