Skip to content

Commit

Permalink
Add Node16 alias
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Jul 30, 2024
1 parent 8b8fbca commit 30e18c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli-utils/src/ts/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export const programFactory = (params: ProgramFactoryParams): ProgramFactory =>
// NOTE: Using "NodeNext" instead of "Bundler" is almost always a mistake
if (
'Bundler' in ts.ModuleResolutionKind &&
options.moduleResolution === ts.ModuleResolutionKind.NodeNext
(options.moduleResolution === ts.ModuleResolutionKind.NodeNext ||
options.moduleResolution === ts.ModuleResolutionKind.Node16)
) {
options.moduleResolution = ts.ModuleResolutionKind.Bundler;
}
Expand Down

0 comments on commit 30e18c6

Please # to comment.