Skip to content

Commit 0f1585f

Browse files
author
zhengbli
committed
recreate program if baseUrl or paths changed in tsconfig
1 parent 33f72c7 commit 0f1585f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/services/services.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3097,7 +3097,9 @@ namespace ts {
30973097
oldSettings.noResolve !== newSettings.noResolve ||
30983098
oldSettings.jsx !== newSettings.jsx ||
30993099
oldSettings.allowJs !== newSettings.allowJs ||
3100-
oldSettings.disableSizeLimit !== oldSettings.disableSizeLimit);
3100+
oldSettings.disableSizeLimit !== oldSettings.disableSizeLimit ||
3101+
oldSettings.baseUrl !== newSettings.baseUrl ||
3102+
!mapIsEqualTo(oldSettings.paths, newSettings.paths));
31013103

31023104
// Now create a new compiler
31033105
const compilerHost: CompilerHost = {

0 commit comments

Comments
 (0)