feat(typescript): support 4.7 nodenext
Rollup Plugin Name: typescript
This PR contains:
- [ ] bugfix
- [x] feature
- [ ] refactor
- [ ] documentation
- [ ] other
Are tests included?
- [x] yes (bugfixes and features will not be merged without tests)
- [ ] no
Breaking Changes?
- [ ] yes (breaking changes will not be merged unless absolutely necessary)
- [x] no
If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.
List any relevant issue numbers:
Description
Add support for the new module: nodenext/node16 typescript options in 4.7. This is breaking because it will now require typescript >= 4.7. I tested that this works in my environment via patch-package, but there are broken tests, etc. If one of the maintainers can provide pointers towards getting this ready I will be highly grateful!
@shellscape @lukastaegert
OK I finally got around to deep dive into this issue and iron out the details. Originally I thought that this would be a breaking change and require typescript 4.7, but thinking more carefully, I think this will work perfectly fine with older typescript versions as it has thus far. Took inspiration from @cspotcode's work on https://github.com/TypeStrong/ts-node/issues/1778, couldn't have figured this all out without his help! I added some tests to ensure typescript is resolving to the expected module type (cjs or esnext), and hopefully didn't introduce any regressions in the process. The previous tests are all passing as usual.
Any update about this PR?
I could fix the conflicts but I'll need someone to merge it 😅
I could fix the conflicts but I'll need someone to merge it
@perrin4869 please do, then ping me directly if you don't see action within 24 hours.
Done! 😄