ezolenko / rollup-plugin-typescript2

Rollup plugin for typescript with compiler errors.
MIT License
819 stars 71 forks source link

add `module: 'ES2022'`, support newer `moduleResolution` kinds, support `cts` + `mts` #447

Closed ezolenko closed 1 year ago

ezolenko commented 1 year ago

Summary

Fix for #437

Details

agilgur5 commented 1 year ago

Replaced by #453

agilgur5 commented 1 year ago

Or rather, this got split into multiple PRs it looks like:

Much nicer and easier to read as separate PRs!

ezolenko commented 1 year ago

Yeah, ignore that PR, I started too many changes at once and updated deps too far and that required yet more changes and so on (we'd still have to figure out ts-jest problems eventually I guess). All interesting changes are pulled out into those 3 PRs

agilgur5 commented 1 year ago

Ah right, ts-jest is having issues because jest's ESM support is still experimental, meaning some CJS is still needed. ts-jest now has some support too now though, so might be able to get it to work that way.

EDIT: welp, that gives even more problems because some of the test code does not work in ESM mode (e.g. __dirname, require for tslib, and imports of CJS packages)