File tree 1 file changed +9
-9
lines changed
packages/babel-preset-react-app 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,15 @@ module.exports = (context, opts = {}) => {
96
96
] ) ,
97
97
} ;
98
98
} else {
99
+ if ( env === 'production' ) {
100
+ // Optimization: hoist JSX that never changes out of render()
101
+ // Disabled because of issues: https://github.com/facebookincubator/create-react-app/issues/553
102
+ // TODO: Enable again when these issues are resolved.
103
+ // plugins.push.apply(plugins, [
104
+ // require.resolve('babel-plugin-transform-react-constant-elements')
105
+ // ]);
106
+ }
107
+
99
108
return {
100
109
presets : [
101
110
// Latest stable ECMAScript features
@@ -131,14 +140,5 @@ module.exports = (context, opts = {}) => {
131
140
require . resolve ( 'babel-plugin-syntax-dynamic-import' ) ,
132
141
] ) ,
133
142
} ;
134
-
135
- if ( env === 'production' ) {
136
- // Optimization: hoist JSX that never changes out of render()
137
- // Disabled because of issues: https://github.com/facebookincubator/create-react-app/issues/553
138
- // TODO: Enable again when these issues are resolved.
139
- // plugins.push.apply(plugins, [
140
- // require.resolve('babel-plugin-transform-react-constant-elements')
141
- // ]);
142
- }
143
143
}
144
144
} ;
You can’t perform that action at this time.
0 commit comments