mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
Re-enable transform-react-constant-elements (#1552)
* Bump babel deps * Re-enable transform-react-constant-elements Resolves #553
This commit is contained in:
@@ -109,13 +109,8 @@ if (env === 'test') {
|
||||
|
||||
if (env === 'production') {
|
||||
// Optimization: hoist JSX that never changes out of render()
|
||||
// Disabled because of issues:
|
||||
// * https://github.com/facebookincubator/create-react-app/issues/525
|
||||
// * https://phabricator.babeljs.io/search/query/pCNlnC2xzwzx/
|
||||
// * https://github.com/babel/babel/issues/4516
|
||||
// TODO: Enable again when these issues are resolved.
|
||||
// plugins.push.apply(plugins, [
|
||||
// require.resolve('babel-plugin-transform-react-constant-elements')
|
||||
// ]);
|
||||
plugins.push.apply(plugins, [
|
||||
require.resolve('babel-plugin-transform-react-constant-elements')
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,18 +12,18 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"babel-plugin-syntax-dynamic-import": "6.18.0",
|
||||
"babel-plugin-transform-class-properties": "6.22.0",
|
||||
"babel-plugin-transform-es2015-parameters": "6.22.0",
|
||||
"babel-plugin-transform-object-rest-spread": "6.22.0",
|
||||
"babel-plugin-transform-react-constant-elements": "6.22.0",
|
||||
"babel-plugin-transform-react-jsx": "6.22.0",
|
||||
"babel-plugin-transform-class-properties": "6.23.0",
|
||||
"babel-plugin-transform-es2015-parameters": "6.23.0",
|
||||
"babel-plugin-transform-object-rest-spread": "6.23.0",
|
||||
"babel-plugin-transform-react-constant-elements": "6.23.0",
|
||||
"babel-plugin-transform-react-jsx": "6.23.0",
|
||||
"babel-plugin-transform-react-jsx-self": "6.22.0",
|
||||
"babel-plugin-transform-react-jsx-source": "6.22.0",
|
||||
"babel-plugin-transform-regenerator": "6.22.0",
|
||||
"babel-plugin-transform-runtime": "6.22.0",
|
||||
"babel-plugin-transform-runtime": "6.23.0",
|
||||
"babel-preset-env": "1.1.8",
|
||||
"babel-preset-latest": "6.22.0",
|
||||
"babel-preset-react": "6.22.0",
|
||||
"babel-runtime": "6.22.0"
|
||||
"babel-preset-react": "6.23.0",
|
||||
"babel-runtime": "6.23.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"autoprefixer": "6.7.2",
|
||||
"babel-core": "6.22.1",
|
||||
"babel-core": "6.23.1",
|
||||
"babel-eslint": "7.1.1",
|
||||
"babel-jest": "18.0.0",
|
||||
"babel-loader": "6.2.10",
|
||||
|
||||
Reference in New Issue
Block a user