Skip to content

[Bug]: canonical name not found panic happens with treeshake.commonjs=true #5403

@sapphi-red

Description

@sapphi-red

Reproduction link or steps

  1. Open https://stackblitz.com/edit/rolldown-rolldown-starter-stackblitz-3h24sozx?file=rolldown.config.mjs
  2. pnpm i runs automatically
  3. pnpm build runs automatically

What is expected?

No panic happens

What is actually happening?

The following panic happens:

thread 'tokio-runtime-worker' panicked at crates/rolldown/src/module_finalizers/mod.rs:54:7:
canonical name not found for SymbolRef { owner: 2, symbol: SymbolId(4294967293) }, original_name: "dist_es_exports" in module "/home/projects/rolldown-rolldown-starter-stackblitz-3h24sozx/node_modules/.pnpm/@[email protected]/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js"

System Info

StackBlitz

  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 20.19.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    rolldown: latest => 1.0.0-beta.29

Any additional comments?

Originally reported at vitejs/rolldown-vite#333

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions