Skip to content

Module Resolution(?) Regression in >=beta.36 #6263

@beeequeue

Description

@beeequeue

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions