[DevTools] Fix `react-devtools-extension` build error and `react-devtools-inline`'s `package.json` (#22281)
Luna Ruan committed
Sep 9, 2021 at 14:26 UTC
43cf06daf929272f32758dc73c9240887e908f87
2 files changed
+3
-2
packages/react-devtools-extensions/src/main.js
+1
-1
@@ -289,7 +289,7 @@ function createPanelIfReactLoaded() {
289
290
// TODO (Webpack 5) Hopefully we can remove this prop after the Webpack 5 migration.
291
const hookNamesModuleLoaderFunction = () =>
292
- import('react-devtools-inline/hookNames');
292
+ import('react-devtools-shared/src/hooks/parseHookNames');
293
294
root = createRoot(document.createElement('div'));
295
packages/react-devtools-inline/package.json
+2
-1
@@ -13,7 +13,8 @@
13
"dist",
14
"backend.js",
15
"build-info.json",
16
- "frontend.js"
16
+ "frontend.js",
17
+ "hookNames.js"
18
],
19
"scripts": {
20
"build": "cross-env NODE_ENV=production webpack --config webpack.config.js",