Skip to content

Commit b9046ea

Browse files
committed
Use babel-preset-env
1 parent b7f0c33 commit b9046ea

File tree

4 files changed

+548
-769
lines changed

4 files changed

+548
-769
lines changed

modules/.babelrc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
{
2-
"presets": [
3-
[ "es2015", { "loose": true } ],
4-
"stage-1",
5-
"react"
6-
]
2+
"presets": [["env", { "loose": true }], "stage-1", "react"]
73
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
"prop-types": "^15.5.10"
3030
},
3131
"devDependencies": {
32-
"babel-cli": "^6.11.4",
32+
"babel-core": "^6.26.0",
3333
"babel-eslint": "^7.0.0",
3434
"babel-plugin-dev-expression": "^0.2.1",
3535
"babel-plugin-external-helpers": "^6.22.0",
3636
"babel-plugin-transform-react-remove-prop-types": "^0.4.12",
37-
"babel-preset-es2015": "^6.14.0",
37+
"babel-preset-env": "^1.6.1",
3838
"babel-preset-react": "^6.11.1",
3939
"babel-preset-stage-1": "^6.5.0",
4040
"eslint": "^3.2.2",

scripts/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const getPlugins = env => {
1919
babel({
2020
exclude: "node_modules/**",
2121
babelrc: false,
22-
presets: [["es2015", { loose: true, modules: false }], "stage-1", "react"],
22+
presets: [["env", { loose: true, modules: false }], "stage-1", "react"],
2323
plugins: ["external-helpers"].concat(
2424
env === "production" ? ["dev-expression", "transform-react-remove-prop-types"] : []
2525
)

0 commit comments

Comments
 (0)