-
Notifications
You must be signed in to change notification settings - Fork 738
[Bug]: incorrect execution order when moduleSideEffects: 'no-treeshake' module exists #8863
Copy link
Copy link
Closed
Copy link
Description
Reproduction link or steps
- Open https://stackblitz.com/edit/rolldown-rolldown-starter-stackblitz-k5yeeoah?file=package.json
pnpm iandpnpm buildruns automatically- Run
pnpm exec:originalto see the behavior of the input file. It should outputundefined. - Run
pnpm exec:builtto see the behavior of the bundled file. - Run
pnpm build:upto bundle with Rollup - Run
pnpm 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:
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.10Any additional comments?
Originally reported at vitejs/vite#21975
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Fields
Give feedbackPriority
None yet
Effort
None yet