加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.babelrc 594 Bytes
一键复制 编辑 原始数据 按行查看 历史
// 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"]
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化