minimal reproduction
https://github.com/edison1105/rolldown-treeshake-repro
Reproduce
# clone the repro
pnpm install
pnpm build
see dist/rolldown.js and dist/rollup.js for differences
What is expected?
The unused function should be removed
What is actually happening?
The unused function persists in the bundle
minimal reproduction
https://github.com/edison1105/rolldown-treeshake-repro
Reproduce
# clone the repro pnpm install pnpm buildsee dist/rolldown.js and dist/rollup.js for differences
What is expected?
The unused function should be removed
What is actually happening?
The unused function persists in the bundle