@samitouri / QOS-React-2 / commits / e8feb11b62

Fixed issue for better bundles,chunks and workers name in devtools-extensions. (#22322)

Abhay Gupta committed Sep 15, 2021 at 23:21 UTC e8feb11b62e869804970258fa629922edbfc836b
2 files changed +4 -1
packages/react-devtools-extensions/src/main.js
+3 -1
@@ -331,7 +331,9 @@ function createPanelIfReactLoaded() {
331
332 // TODO (Webpack 5) Hopefully we can remove this prop after the Webpack 5 migration.
333 const hookNamesModuleLoaderFunction = () =>
334 - import('react-devtools-shared/src/hooks/parseHookNames');
334 + import(
335 + /* webpackChunkName: 'parseHookNames' */ 'react-devtools-shared/src/hooks/parseHookNames'
336 + );
337
338 root = createRoot(document.createElement('div'));
339
packages/react-devtools-extensions/webpack.config.js
+1
@@ -114,6 +114,7 @@ module.exports = {
114 loader: 'workerize-loader',
115 options: {
116 inline: true,
117 + name: '[name]',
118 },
119 },
120 {