Skip to content

Commit

Permalink
Merge pull request busyorg#879 from Ne3l/new-design
Browse files Browse the repository at this point in the history
Use babel-preset-env instead es2015
  • Loading branch information
Sekhmet authored Oct 24, 2017
2 parents 2117dcf + 4a769ba commit 137b45c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 85 deletions.
10 changes: 6 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"presets": [
[
"env", {
"es2015": {
"modules": false
}
"env",
{
"modules": false
}
],
"react",
Expand All @@ -13,6 +12,9 @@
"env": {
"development": {
"plugins": "react-hot-loader/babel"
},
"test": {
"plugins": ["transform-es2015-modules-commonjs"]
}
},
"plugins": [
Expand Down
93 changes: 16 additions & 77 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-polyfill": "^6.16.0",
"babel-preset-env": "^1.5.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-latest": "^6.24.1",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-preset-react-hmre": "^1.1.1",
"babel-preset-stage-2": "^6.24.1",
Expand Down
2 changes: 1 addition & 1 deletion webpack/webpack.server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = {
use: {
loader: 'babel-loader',
options: {
presets: ['es2015', 'react', 'stage-2'],
presets: ['env', 'react', 'stage-2'],
plugins: ['transform-decorators-legacy', 'transform-runtime'],
cacheDirectory: true,
},
Expand Down

0 comments on commit 137b45c

Please sign in to comment.