-
-
Save rdig/e50501858ebc875341d8b730ae4dab70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/.babelrc b/.babelrc | |
index eb8457f..e425adb 100644 | |
--- a/.babelrc | |
+++ b/.babelrc | |
@@ -1,5 +1,4 @@ | |
{ | |
- "presets": ["env", "flow"], | |
"plugins": [ | |
["transform-runtime", { "polyfill": false, "regenerator": true }], | |
["transform-inline-environment-variables", { | |
@@ -15,11 +14,21 @@ | |
"env": { | |
"es": { | |
"presets": [ | |
- ["env", { "modules": false }], | |
- "flow", | |
- ], | |
+ ["env", { "modules": false, "debug": true }], | |
+ "flow" | |
+ ] | |
+ }, | |
+ "cjs": { | |
+ "presets": [ | |
+ "env", | |
+ "flow" | |
+ ] | |
}, | |
"test": { | |
+ "presets": [ | |
+ "env", | |
+ "flow" | |
+ ], | |
"plugins": ["dynamic-import-node"], | |
"ignore": null | |
} | |
diff --git a/scripts/jobs.js b/scripts/jobs.js | |
index db120fd..5449621 100644 | |
--- a/scripts/jobs.js | |
+++ b/scripts/jobs.js | |
@@ -9,13 +9,13 @@ const clean = message => run( | |
const umd = message => run( | |
'webpack-cli', | |
- {}, | |
+ { BABEL_ENV: 'cjs' }, | |
message | |
); | |
const umdMinified = message => run( | |
'webpack-cli --optimize-minimize', | |
- {}, | |
+ { BABEL_ENV: 'cjs' }, | |
message | |
); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment