Skip to content

Commit

Permalink
fix: use nodenext moduleResolution with ts-node (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Apr 24, 2024
1 parent f08cc0a commit 34a8ea8
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 34a8ea8

Please sign in to comment.