@samitouri / QOS-React-2 / commits / 4190a34588

Update scheduling profiler Webpack config (#20867)

Use the pre-built scheduler (which includes a check for 'window' being defined in order to load the right scheduler implementation) rather than just directly importing a version of the scheduler that relies on window. Since the scheduling profiler's code runs partially in a web worker, it can't rely on window.

Brian Vaughn committed Feb 23, 2021 at 12:15 UTC 4190a34588ec0b05aac6f050ec656ec4b3f005d7
1 file changed +1
packages/react-devtools-scheduling-profiler/webpack.config.js
+1
@@ -49,6 +49,7 @@ const config = {
49 react: resolve(builtModulesDir, 'react'),
50 'react-dom': resolve(builtModulesDir, 'react-dom'),
51 'react-refresh': resolve(builtModulesDir, 'react-refresh'),
52 + scheduler: resolve(builtModulesDir, 'scheduler'),
53 },
54 },
55 plugins: [