Skip to content

Commit

Permalink
Fixed issue for better bundles,chunks and workers name in devtools-ex…
Browse files Browse the repository at this point in the history
…tensions. (#22322)
  • Loading branch information
akgupta0777 authored Sep 15, 2021
1 parent f4ac680 commit e8feb11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-devtools-extensions/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ function createPanelIfReactLoaded() {

// TODO (Webpack 5) Hopefully we can remove this prop after the Webpack 5 migration.
const hookNamesModuleLoaderFunction = () =>
import('react-devtools-shared/src/hooks/parseHookNames');
import(
/* webpackChunkName: 'parseHookNames' */ 'react-devtools-shared/src/hooks/parseHookNames'
);

root = createRoot(document.createElement('div'));

Expand Down
1 change: 1 addition & 0 deletions packages/react-devtools-extensions/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ module.exports = {
loader: 'workerize-loader',
options: {
inline: true,
name: '[name]',
},
},
{
Expand Down

0 comments on commit e8feb11

Please sign in to comment.