Skip to content

Commit b7d3409

Browse files
committed
fix(compiler): fallback to NodeJS module resolution for ts 4.8
Fixes #4499
1 parent 159879e commit b7d3409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/legacy/compiler/ts-compiler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class TsCompiler implements TsCompilerInstance {
147147
}
148148

149149
private fixupCompilerOptionsForModuleKind(compilerOptions: CompilerOptions, isEsm: boolean): CompilerOptions {
150-
const moduleResolution = this._ts.ModuleResolutionKind.Node10
150+
const moduleResolution = this._ts.ModuleResolutionKind.Node10 ?? this._ts.ModuleResolutionKind.NodeJs
151151
if (!isEsm) {
152152
return {
153153
...compilerOptions,

0 commit comments

Comments
 (0)