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.js22
1 files changed, 15 insertions, 7 deletions
diff --git a/support/build/aggregate-bundle.js b/support/build/aggregate-bundle.js
index a933033..78b1e7e 100644
--- a/support/build/aggregate-bundle.js
+++ b/support/build/aggregate-bundle.js
@@ -1,9 +1,17 @@
const aggregateBuild = require('./aggregate-build');
+const compileModules = require('./compile-modules');
+const {series} = require('async');
+const outpath = 'build/modules-for-umd';
-aggregateBuild({
- es6: true,
- outpath:'build/build-modules-es6',
- outfile: 'build/dist/async.js',
- format: 'umd',
- lodashRename: true
-});
+series([
+ compileModules.bind(null, {
+ es6: true,
+ outpath,
+ lodashRename: true
+ }),
+ aggregateBuild.bind(null, {
+ entriesPath: outpath,
+ outfile: 'build/dist/async.js',
+ format: 'umd',
+ })
+], err => { if (err) throw err; })