mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user