-
Notifications
You must be signed in to change notification settings - Fork 699
Description
I have been running into issues building some projects after upgrading to version beta.36+.
More specifically it seems like DCE is not being performed correctly, leading to incorrect code being included or breaking when it can't be.
From my own investigating it seems like it's resolving CJS files when ESM files are provided by the packages which seems wrong, and might be why the code can't be treeshaken? I'm not sure though... 😄
The packages I've ran into issues trying to build are vike (vike/server->rolldown-vite->lightningcss->ERROR) and discord.js (builds, but the output is incorrect and fails to run).
Repro with vike/server: https://github.com/beeequeue/repro-rolldown-beta-36
Uncomment version override in pnpm-workspace.yaml to see it working in beta.35