Self-service
Describe the bug
I just upgraded a project to using Vite 8 (with rolldown instead of esbuild and rollup). After the upgrade I was no longer able to build my project, because rolldown is unable to resolve imports.
Changing the nodeLinker from pnp to node-modules fixes the problem.
To reproduce
- Create a new project using Vite 7 and pnp linker
- Build the project successfully
- Upgrade to Vite 8
- Building the project fails
Environment
Additional context
I assume this happens because the pnp linker changes how modules are resolved. Since rolldown is using native code (Rust) it is probably impossible to patch it like it is done for typescript.
I have not tested this, but I additionally assume that this issue will also occur when using other native build tools, like tsgo, oxlint or oxfmt.
Self-service
Describe the bug
I just upgraded a project to using Vite 8 (with rolldown instead of esbuild and rollup). After the upgrade I was no longer able to build my project, because rolldown is unable to resolve imports.
Changing the nodeLinker from pnp to node-modules fixes the problem.
To reproduce
Environment
Additional context
I assume this happens because the pnp linker changes how modules are resolved. Since rolldown is using native code (Rust) it is probably impossible to patch it like it is done for typescript.
I have not tested this, but I additionally assume that this issue will also occur when using other native build tools, like tsgo, oxlint or oxfmt.