wewechat-plus-plus/.babelrc
Riceneeder 58ce6cb67b wewechat++ init
仓库提交至星火社区作品集

Signed-off-by: Riceneeder <86492950+Riceneeder@users.noreply.github.com>
2022-09-01 20:38:13 +08:00

19 lines
594 B
Plaintext

// 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"]
}
}
}