Skip to content
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

Update base TSConfig to options supported by Node 22 #4481

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

rakyi
Copy link
Contributor

@rakyi rakyi commented Jan 23, 2025

https://www.npmjs.com/package/@tsconfig/node22

We still have to override module and moduleResolution because node16 causes issues with imports of external packages like instantsearch.js.


"lib": ["dom", "dom.iterable", "es2020", "es2021", "es2022", "es2023"],
"target": "es2019",
"lib": ["dom", "dom.iterable", "es2023"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"lib": ["dom", "dom.iterable", "es2023"],
"lib": ["dom", "dom.iterable", "es2023", "ESNext.Collection"],

should hopefully work :) (well, I haven't really extensively tried it, but I don't know why it wouldn't work)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, this might work for the new set intersection and friends. I'll try it in #4478

https://www.npmjs.com/package/@tsconfig/node22

We still have to override `module` and `moduleResolution` because
`node16` causes issues with imports of external packages like
`instantsearch.js`.
@rakyi rakyi merged commit e527888 into master Jan 23, 2025
13 of 15 checks passed
@rakyi rakyi deleted the tsconfig-node-22 branch January 23, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants