Skip to content

Commit 4356347

Browse files
author
Juan Tejada
committed
Properly build bundle for parseHookNames + rm unintended change in webpack config
1 parent 1572a4c commit 4356347

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/react-devtools-core/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"dist",
1414
"backend.js",
1515
"build-info.json",
16-
"standalone.js",
17-
"hookNames.js"
16+
"standalone.js"
1817
],
1918
"scripts": {
2019
"build": "yarn build:backend && yarn build:standalone",

packages/react-devtools-core/src/standalone.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ let statusListener: StatusListener = (message: string) => {};
4545

4646
// TODO (Webpack 5) Hopefully we can remove this prop after the Webpack 5 migration.
4747
function hookNamesModuleLoaderFunction() {
48-
return import('./hookNames');
48+
return import(
49+
/* webpackChunkName: 'parseHookNames' */ 'react-devtools-shared/src/hooks/parseHookNames'
50+
);
4951
}
5052

5153
function setContentDOMNode(value: HTMLElement) {

packages/react-devtools-core/webpack.standalone.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ const babelOptions = {
3838

3939
module.exports = {
4040
mode: __DEV__ ? 'development' : 'production',
41-
devtool: __DEV__ ? 'cheap-source-map' : 'source-map',
41+
devtool: __DEV__ ? 'cheap-module-eval-source-map' : 'source-map',
4242
target: 'electron-main',
4343
entry: {
4444
standalone: './src/standalone.js',
45-
hookNames: './src/hookNames.js',
4645
},
4746
output: {
4847
path: __dirname + '/dist',

0 commit comments

Comments
 (0)