Skip to content

Commit 62283f4

Browse files
DorianScholzZemnmez
authored andcommitted
set webpack mainFields to default values
this fixes the issue with the debug lib: react-workspaces#6
1 parent 0f86be9 commit 62283f4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

packages/react-scripts/config/webpack.config.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,7 @@ module.exports = function(webpackEnv) {
6868
const isEnvDevelopment = webpackEnv === 'development';
6969
const isEnvProduction = webpackEnv === 'production';
7070

71-
const workspacesMainFields = [
72-
workspacesConfig.packageEntry,
73-
'browser',
74-
'module',
75-
'main',
76-
];
77-
78-
79-
const workspacesMainFields = [workspacesConfig.packageEntry, 'main'];
71+
const workspacesMainFields = [workspacesConfig.packageEntry, 'browser', 'module', 'main'];
8072
const mainFields =
8173
isEnvDevelopment && workspacesConfig.development
8274
? workspacesMainFields

0 commit comments

Comments
 (0)