Reproduction link or steps
reproduction
stackblitz
https://stackblitz.com/github/Gehbt/250107-tsdown-bug-repo
github
https://github.com/Gehbt/250107-tsdown-bug-repo
steps
- run
pnpm run build
- run
pnpm run start
Output have Assertion fail.
What is expected?
run npm run node.start, there were no Assertion fail.
What is actually happening?
dist/data.js has no export syntax. So that undefined be imported
Any additional comments?
On bundle mode or format esm is fine.