Reproduction link or steps
- Open https://stackblitz.com/edit/rolldown-rolldown-starter-stackblitz-k5yeeoah?file=package.json
pnpm i and pnpm build runs automatically
- Run
pnpm exec:original to see the behavior of the input file. It should output undefined.
- Run
pnpm exec:built to see the behavior of the bundled file.
- Run
pnpm build:up to bundle with Rollup
- Run
pnpm exec:built to see the behavior of the bundled file by Rollup.
What is expected?
The bundled file outputs undefined.
What is actually happening?
The following error happens when running the bundled file:
TypeError: Cannot read properties of undefined (reading 'Designer')
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: 22.22.0 - /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/browser: 1.0.0-rc.10
Any additional comments?
Originally reported at vitejs/vite#21975
Reproduction link or steps
pnpm iandpnpm buildruns automaticallypnpm exec:originalto see the behavior of the input file. It should outputundefined.pnpm exec:builtto see the behavior of the bundled file.pnpm build:upto bundle with Rolluppnpm exec:builtto see the behavior of the bundled file by Rollup.What is expected?
The bundled file outputs
undefined.What is actually happening?
The following error happens when running the bundled file:
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: 22.22.0 - /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/browser: 1.0.0-rc.10Any additional comments?
Originally reported at vitejs/vite#21975