Closed ezolenko closed 1 year ago
Replaced by #453
Or rather, this got split into multiple PRs it looks like:
moduleResolution
changescts
+ mts
module: 'ES2022'
Much nicer and easier to read as separate PRs!
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
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)
Summary
Fix for #437
Details
moduleResolution
option as is ("node", "node16", "nodenext")