-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Self-service
- I'd be willing to implement a fix
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
Vite 8Additional 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working