Skip to content

Commit

Permalink
chore: Replace babel-preset-es2015 on babel-preset-env Fixed #931 (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-redFox authored and tmcw committed Oct 4, 2017
1 parent 8b8e6a2 commit e203df5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .babelrc
@@ -1,5 +1,13 @@
{
"presets": ["es2015", "stage-0", "flow"],
"presets": [
["env", {
"targets": {
"node": 4
},
"include": ["transform-regenerator"]
}],
"flow"
],
"plugins": ["syntax-async-functions"],
"ignore": [
"**/default_theme/assets/*"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -12,7 +12,7 @@
"babel-generator": "^6.25.0",
"babel-plugin-system-import-transformer": "3.1.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-es2015": "^6.16.0",
"babel-preset-env": "^1.6.0",
"babel-preset-react": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
"babel-traverse": "^6.16.0",
Expand Down Expand Up @@ -141,4 +141,4 @@
"mime"
]
}
}
}
2 changes: 1 addition & 1 deletion src/input/dependency.js
Expand Up @@ -38,7 +38,7 @@ function dependencyStream(
sourceMap: false,
compact: false,
presets: [
require('babel-preset-es2015'),
require('babel-preset-env'),
require('babel-preset-stage-0'),
require('babel-preset-react')
],
Expand Down

0 comments on commit e203df5

Please sign in to comment.