Skip to content

Commit

Permalink
fix(compiler): fallback to NodeJS module resolution for ts 4.8
Browse files Browse the repository at this point in the history
Fixes #4499
  • Loading branch information
ahnpnl committed Aug 7, 2024
1 parent 159879e commit b7d3409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/legacy/compiler/ts-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class TsCompiler implements TsCompilerInstance {
}

private fixupCompilerOptionsForModuleKind(compilerOptions: CompilerOptions, isEsm: boolean): CompilerOptions {
const moduleResolution = this._ts.ModuleResolutionKind.Node10
const moduleResolution = this._ts.ModuleResolutionKind.Node10 ?? this._ts.ModuleResolutionKind.NodeJs
if (!isEsm) {
return {
...compilerOptions,
Expand Down

0 comments on commit b7d3409

Please sign in to comment.