Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fix(.babelrc): move plugins from ssr.env to main plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Metnew committed Jul 13, 2017
1 parent eea6848 commit 07d1896
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,18 @@
],
"react-hot-loader/babel",
"transform-react-jsx-img-import",
"syntax-dynamic-import"
"syntax-dynamic-import",
[
"babel-plugin-webpack-alias",
{
"config": "./webpack_config/webpack.base.js",
"findConfig": true
}
],
"dynamic-import-node"
],
"presets": ["es2015", "react", "stage-0"],
"env": {
"ssr": {
"plugins": [
[
"babel-plugin-webpack-alias",
{
"config": "./webpack_config/webpack.base.js",
"findConfig": true
}
],
"dynamic-import-node"
]
},
"production": {
"presets": ["react-optimize"]
}
Expand Down

0 comments on commit 07d1896

Please sign in to comment.