Closed remcohaszing closed 1 week ago
Thanks for the PR. Would you mind to target it to 1.x branch? (I'm working on another refactor that changes whole bundling system of jit 2.x)
If youβre doing a semver major, I suggest another solution: Use a named export.
Defenitly. Default will be for retro compat but yes i am planning to use ESM + named.
In that case I donβt recommend merging this into the 1.x
branch. Feel free to merge or close this as you like. :)
Thanks for PR again. jiti v2 is almost ready with named { createJiti }
export.
π Linked issue
https://github.com/twoslashes/twoslash/pull/42#discussion_r1631001129
β Type of change
π Description
Jiti uses a special build step to compile the default export to
export =
. The generated type definitions donβt match this. To resolve this, a manual type declaration file was added.π Checklist