You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TS 5.7 introduced the new rewriteRelativeImportExtensions option, which allows devs to write imports with .ts extensions, and it'll be transformed to .js extensions at compile time. Despite having the option set, tsup doesn't do the rewrites. Ideally it would rewrite the extension according to the module type emitted. e.g. esm with mjs extensions would rewrite the relative import extension to mjs.
TS 5.7 introduced the new
rewriteRelativeImportExtensions
option, which allows devs to write imports with.ts
extensions, and it'll be transformed to.js
extensions at compile time. Despite having the option set, tsup doesn't do the rewrites. Ideally it would rewrite the extension according to the module type emitted. e.g. esm withmjs
extensions would rewrite the relative import extension tomjs
.Ref: https://devblogs.microsoft.com/typescript/announcing-typescript-5-7/#path-rewriting-for-relative-paths
The text was updated successfully, but these errors were encountered: