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
Hi, since tsup's default target is node14, so import assertions will finally be transformed. you can specify target to esnext according to esbuild's syntax features in tsup.config.ts:
When bundling an 'esm' file that include
import assertions
, they are missing in the generated output.Repo with reproduction: https://github.com/ivanhofer/tsup-import-assertion-bug
In
/esbuild/index.js
the import assertion are here, but in/tsup/index.mjs
they are missing.I would expect
tsup
to also include the import assertions in the generated output.Upvote & Fund
The text was updated successfully, but these errors were encountered: