From fe39db85ef3c7f4b9d3db9d2410cac05f1ef8651 Mon Sep 17 00:00:00 2001 From: Ken Date: Mon, 4 Mar 2019 19:36:44 -0800 Subject: [PATCH] enables react-profiler --- webpack.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 17915fd..a14b710 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -108,7 +108,11 @@ module.exports = function(env, argv) { }) ], resolve: { - extensions: ['.tsx', '.ts', '.js'] + extensions: ['.tsx', '.ts', '.js'], + alias: { + 'react-dom$': 'react-dom/profiling', + 'scheduler/tracing': 'scheduler/tracing-profiling' + } }, output: { filename: '[name]/bundle.js',