Skip to content

Commit 4190a34

Browse files
author
Brian Vaughn
authored
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.
1 parent e5f6b91 commit 4190a34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-devtools-scheduling-profiler/webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const config = {
4949
react: resolve(builtModulesDir, 'react'),
5050
'react-dom': resolve(builtModulesDir, 'react-dom'),
5151
'react-refresh': resolve(builtModulesDir, 'react-refresh'),
52+
scheduler: resolve(builtModulesDir, 'scheduler'),
5253
},
5354
},
5455
plugins: [

0 commit comments

Comments
 (0)