Skip to content

Commit

Permalink
Update scheduling profiler Webpack config (#20867)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Brian Vaughn committed Feb 23, 2021
1 parent e5f6b91 commit 4190a34
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 4190a34

Please sign in to comment.