wewechat++ init
仓库提交至星火社区作品集 Signed-off-by: Riceneeder <86492950+Riceneeder@users.noreply.github.com>
This commit is contained in:
18
.babelrc
Normal file
18
.babelrc
Normal file
@@ -0,0 +1,18 @@
|
||||
// NOTE: These options are overriden by the babel-loader configuration
|
||||
// for webpack, which can be found in ~/build/webpack.config.
|
||||
//
|
||||
// Why? The react-transform-hmr plugin depends on HMR (and throws if
|
||||
// module.hot is disabled), so keeping it and related plugins contained
|
||||
// within webpack helps prevent unexpected errors.
|
||||
{
|
||||
"presets": ["es2015", "react", "stage-0"],
|
||||
"plugins": ["babel-polyfill", "transform-decorators-legacy"],
|
||||
"env": {
|
||||
"production": {
|
||||
"presets": ["react-optimize"]
|
||||
},
|
||||
"development": {
|
||||
"presets": ["react-hmre"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user