Skip to content

Commit 43cf06d

Browse files
authored
[DevTools] Fix react-devtools-extension build error and react-devtools-inline's package.json (#22281)
1 parent 96814e7 commit 43cf06d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/react-devtools-extensions/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ function createPanelIfReactLoaded() {
289289

290290
// TODO (Webpack 5) Hopefully we can remove this prop after the Webpack 5 migration.
291291
const hookNamesModuleLoaderFunction = () =>
292-
import('react-devtools-inline/hookNames');
292+
import('react-devtools-shared/src/hooks/parseHookNames');
293293

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

packages/react-devtools-inline/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"dist",
1414
"backend.js",
1515
"build-info.json",
16-
"frontend.js"
16+
"frontend.js",
17+
"hookNames.js"
1718
],
1819
"scripts": {
1920
"build": "cross-env NODE_ENV=production webpack --config webpack.config.js",

0 commit comments

Comments
 (0)