Skip to content

Commit

Permalink
fix: use nodenext moduleResolution with ts-node (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Apr 24, 2024
1 parent 3074049 commit d8ef347
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export const tryToRegisterTsNode = (): void => {
swc: JSON.parse(swcRaw),
compilerOptions: {
allowJs: true,
module: "nodenext",
moduleResolution: "nodenext",
},
});
} catch (err) {
Expand Down

0 comments on commit d8ef347

Please sign in to comment.