You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
318 B
JavaScript
14 lines
318 B
JavaScript
const { rollup } = require('rollup');
|
|
const { configs } = require('../config');
|
|
|
|
module.exports = function scripts() {
|
|
const bundles = configs.map((config) =>
|
|
rollup(config).then((bundle) => {
|
|
config.cache = bundle;
|
|
return bundle.write(config.output);
|
|
}),
|
|
);
|
|
|
|
return Promise.all(bundles);
|
|
};
|