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.
This commit is contained in:
Brian Vaughn
2021-02-23 12:15:36 -05:00
committed by GitHub
parent e5f6b91d29
commit 4190a34588
@@ -49,6 +49,7 @@ const config = {
react: resolve(builtModulesDir, 'react'),
'react-dom': resolve(builtModulesDir, 'react-dom'),
'react-refresh': resolve(builtModulesDir, 'react-refresh'),
scheduler: resolve(builtModulesDir, 'scheduler'),
},
},
plugins: [