summaryrefslogtreecommitdiff
path: root/support/build/aggregate-bundle.js
diff options
context:
space:
mode:
Diffstat (limited to 'support/build/aggregate-bundle.js')
-rw-r--r--support/build/aggregate-bundle.js20
1 files changed, 14 insertions, 6 deletions
diff --git a/support/build/aggregate-bundle.js b/support/build/aggregate-bundle.js
index 94089f9..c48b25f 100644
--- a/support/build/aggregate-bundle.js
+++ b/support/build/aggregate-bundle.js
@@ -1,7 +1,15 @@
-const aggregateBuild = require('./aggregate-build');
+const {rollup} = require('rollup');
+const nodeResolve = require('rollup-plugin-node-resolve');
-aggregateBuild({
- entriesPath: 'build-es',
- outfile: 'build/dist/async.js',
- format: 'umd',
-}, err => { if (err) throw err; })
+rollup({
+ entry: 'build-es/index.js',
+ plugins: [ nodeResolve() ]
+})
+.then(function ( bundle ) {
+ return bundle.write({
+ format: 'umd',
+ moduleName: 'async',
+ dest: 'build/dist/async.js'
+ });
+})
+.catch((err) => { throw err; });