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 28, 2024
1 parent 8fb5b05 commit cba1fac
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 cba1fac

Please sign in to comment.