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

This commit is contained in:
Abhay Gupta
2021-09-15 23:21:33 +05:30
committed by GitHub
parent f4ac680c7a
commit e8feb11b62
2 changed files with 4 additions and 1 deletions

View File

@@ -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'));

View File

@@ -114,6 +114,7 @@ module.exports = {
loader: 'workerize-loader',
options: {
inline: true,
name: '[name]',
},
},
{