-
Notifications
You must be signed in to change notification settings - Fork 699
Description
Reproduction link or steps
Minimal example: https://github.com/dumbmatter/rolldown-react-bootstrap-minify-bug
It's this code:
import { Modal } from "react-bootstrap";
window.Modal = Modal;
And this command:
$ rolldown index.jsx --minify --file bundle.js
This works if you downgrade rolldown to v1.0.0-beta.54, or if you remove the --minify option. But in v1.0.0-beta.55 it produces an error.
What is expected?
It should run without error.
What is actually happening?
$ pnpm build
> [email protected] build /home/user/rolldown-react-bootstrap-bug
> rolldown index.jsx --minify --file bundle.js
thread '<unnamed>' (1139236) panicked at crates/rolldown/src/module_finalizers/mod.rs:104:7:
canonical name not found for SymbolRef { owner: 34, symbol: SymbolId(4294967292) }, original_name: "import_prop_types" in module "node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/react-bootstrap/esm/CloseButton.js" when finalizing module "node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/react-bootstrap/esm/CloseButton.js" in chunk ""
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
ERROR Panic in async function
ELIFECYCLE Command failed with exit code 1.
System Info
System:
OS: Linux 6.8 Ubuntu 24.04.3 LTS 24.04.3 LTS (Noble Numbat)
CPU: (8) x64 Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
Memory: 15.05 GB / 31.13 GB
Container: Yes
Shell: 5.2.21 - /bin/bash
Binaries:
Node: 24.12.0 - /usr/bin/node
npm: 11.6.2 - /usr/bin/npm
pnpm: 10.25.0 - /home/user/.local/share/pnpm/pnpm
Browsers:
Chrome: 143.0.7499.146
Firefox: 146.0
Firefox Developer Edition: 146.0
npmPackages:
rolldown: 1.0.0-beta.55 => 1.0.0-beta.55Any additional comments?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels