Skip to content

Commit

Permalink
Update lib/internal/modules/cjs/loader.js
Browse files Browse the repository at this point in the history
Co-authored-by: Nikita Skovoroda <[email protected]>
  • Loading branch information
marco-ippolito and ChALkeR authored Jul 27, 2024
1 parent 75f97ce commit 29a83e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/modules/cjs/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ function getDefaultExtensions() {
// is enabled.
extensions = ArrayPrototypeFilter(extensions, (ext) =>
(ext !== '.ts' || Module._extensions['.ts'] !== loadTS) &&
(ext !== '.cts' || Module._extensions['.ts'] !== loadCTS),
(ext !== '.cts' || Module._extensions['.cts'] !== loadCTS),
);
}

Expand Down

0 comments on commit 29a83e5

Please sign in to comment.