Skip to content

[Bug]: Panic on preserveModules + CJS #5044

@sxzz

Description

@sxzz

Reproduction link or steps

https://stackblitz.com/edit/github-mab9td2g-jjk2cdcb?file=package.json,rolldown.config.ts

What is expected?

No panic

What is actually happening?

thread 'tokio-runtime-worker' panicked at crates/rolldown/src/utils/chunk/render_chunk_exports.rs:157:67:
no entry found for key
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
worker (tid = 43) sent an error! unreachable
[Error [RuntimeError]: unreachable]

System Info

N/A

Any additional comments?

rolldown/tsdown#335

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions