Skip to content

Commit 9bd1f7c

Browse files
Check if it is a workspace when reading tsconfig (#26)
Check if it is a workspace when get tsconfig
1 parent 2be5c88 commit 9bd1f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ module.exports = (webpackEnv, argv) => {
143143
entries = {};
144144
}
145145

146-
const tsconfigJson = parseTsconfig(path.join(workspacePath, 'tsconfig.json'));
146+
const tsconfigJson = isSingleRepoMode ? parseTsconfig(path.join(workspacePath, 'tsconfig.json')) : null;
147147
const isLegacyModuleResolution = tsconfigJson?.compilerOptions?.moduleResolution?.toLowerCase() === 'node';
148148
if (isLegacyModuleResolution) {
149149
console.warn('visyn user: you are still using moduleResolution: node. Try to upgrade to node16 as soon as possible!');

0 commit comments

Comments
 (0)