Skip to content

Add --module node18 #60705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andrewbranch opened this issue Dec 6, 2024 · 0 comments · Fixed by #60722
Closed

Add --module node18 #60705

andrewbranch opened this issue Dec 6, 2024 · 0 comments · Fixed by #60722
Assignees
Labels
Fix Available A PR has been opened for this issue

Comments

@andrewbranch
Copy link
Member

Node v16 is EOL, and --module node16 is an awkward target because it doesn't support import attributes, but requires import assertions to import JSON. With #60534, nodenext will advance to support require(esm), so we will want to have a module target that represents Node.js beore require(esm) but after import attributes.

--module node18 will be identical to 5.7's nodenext (except perhaps for the implied --target), and --module node16 will be deprecated in TypeScript 6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Available A PR has been opened for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants