Skip to content

Commit

Permalink
[DevTools] Fix react-devtools-extension build error and `react-devt…
Browse files Browse the repository at this point in the history
…ools-inline`'s `package.json` (#22281)
  • Loading branch information
lunaruan authored Sep 9, 2021
1 parent 96814e7 commit 43cf06d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-devtools-extensions/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function createPanelIfReactLoaded() {

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

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

Expand Down
3 changes: 2 additions & 1 deletion packages/react-devtools-inline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"dist",
"backend.js",
"build-info.json",
"frontend.js"
"frontend.js",
"hookNames.js"
],
"scripts": {
"build": "cross-env NODE_ENV=production webpack --config webpack.config.js",
Expand Down

0 comments on commit 43cf06d

Please sign in to comment.