Skip to content

Commit

Permalink
fix(js): set moduleResolution to Node10 so it is compatible with Comm…
Browse files Browse the repository at this point in the history
…onJS module (#21979)
  • Loading branch information
jaysoo authored Feb 29, 2024
1 parent f6a183c commit 56c34cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/nx/src/plugins/js/utils/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export function getTranspiler(compilerOptions: CompilerOptions) {

compilerOptions.lib = ['es2021'];
compilerOptions.module = ts.ModuleKind.CommonJS;
compilerOptions.moduleResolution = ts.ModuleResolutionKind.Node10;
compilerOptions.target = ts.ScriptTarget.ES2021;
compilerOptions.inlineSourceMap = true;
compilerOptions.skipLibCheck = true;
Expand Down

0 comments on commit 56c34cf

Please sign in to comment.