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
  • Loading branch information
jaysoo committed Feb 23, 2024
1 parent 9aedc68 commit 2dac233
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 2dac233

Please sign in to comment.