egoist / egoist/tsup

import assertion get removed from output

Open
#714 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

When bundling an 'esm' file that include [`import assertions`](https://github.com/tc39/proposal-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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.