Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7968722

Browse files
committed
Changed from babel-preset-es2015 to babel-preset-env to be on the latest and greatest
1 parent 9b0c168 commit 7968722

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

‎myapp/.babelrc‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["env"]
3+
}

‎myapp/package.json‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"author": "",
1010
"license": "ISC",
1111
"devDependencies": {
12-
"babel-core": "^6.21.0",
13-
"babel-loader": "^7.0.0",
14-
"babel-preset-es2015": "^6.18.0",
12+
"babel-core": "^6.21.0",
13+
"babel-loader": "^7.0.0",
14+
"babel-preset-env": "^1.6.1",
1515
"babel-preset-react": "^6.16.0",
16-
"webpack": "^2.6.1"
16+
"webpack": "^2.6.1"
1717
},
1818
"dependencies": {
19-
"react": "^15.4.1",
20-
"react-dom": "^15.4.1"
19+
"react": "^15.4.1",
20+
"react-dom": "^15.4.1"
2121
}
2222
}

‎myapp/webpack.config.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ var config = {
1313
exclude: /node_modules/,
1414
loader: 'babel-loader',
1515
query: {
16-
presets: ['react', 'es2015']
16+
presets: ['react', 'env']
1717
}
1818
}
1919
],
2020
}
2121
};
22-
module.exports = config;
22+
module.exports = config;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /