File tree 1 file changed +7
-0
lines changed
packages/react-scripts/config
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,9 @@ module.exports = function(webpackEnv) {
240
240
// Turned on because emoji and regex is not minified properly using default
241
241
// https://github.com/facebook/create-react-app/issues/2488
242
242
ascii_only : true ,
243
+ // Added for profiling in devtools
244
+ keep_classnames : isEnvProductionProfile ,
245
+ keep_fnames : isEnvProductionProfile ,
243
246
} ,
244
247
} ,
245
248
// Use multi-process parallel running to improve the build speed
@@ -303,6 +306,10 @@ module.exports = function(webpackEnv) {
303
306
// Support React Native Web
304
307
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
305
308
'react-native' : 'react-native-web' ,
309
+ ...( isEnvProductionProfile && {
310
+ 'react-dom$' : 'react-dom/profiling' ,
311
+ 'scheduler/tracing' : 'scheduler/tracing-profiling' ,
312
+ } ) ,
306
313
} ,
307
314
plugins : [
308
315
// Adds support for installing with Plug'n'Play, leading to faster installs and adding
You can’t perform that action at this time.
0 commit comments