You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Removed Module Resolution Using Format Sniffing
77
77
78
78
When both `browser` and `module` fields are present in `package.json`, Vite used to resolve the field based on the content of the file, trying to pick the ESM file for browsers. This was introduced because some packages were using the `module` field to point to ESM files for Node.js and some other packages were using the `browser` field to point to UMD files for browsers. Given that the modern `exports` field solved this problem and is now adopted by many packages, Vite no longer uses this heuristic and always respects the order of the `resolve.mainFields` option. If you were relying on this behavior, you can use the `resolve.alias` option to map the field to the desired file or apply a patch with your package manager (e.g. `patch-package`, `pnpm patch`).
79
79
@@ -85,6 +85,7 @@ When both `browser` and `module` fields are present in `package.json`, Vite used
85
85
86
86
`require` calls for externalized modules are now preserved as `require` calls and not converted to `import` statements.
@@ -124,7 +125,6 @@ There are other breaking changes which only affect few users.
124
125
-**[TODO: fix before stable release (better if it's fixed before first beta)]**https://github.com/rolldown/rolldown/issues/5867
125
126
-**[TODO: fix before stable release]**https://github.com/rolldown/rolldown/issues/5726 (affects nuxt, qwik)
126
127
-**[TODO: fix before stable release]**https://github.com/rolldown/rolldown/issues/3403 (affects sveltekit)
127
-
-**[TODO: fix before stable release]**https://github.com/vitejs/rolldown-vite/issues/465
128
128
-**[TODO: fix before stable release]**https://github.com/vitejs/rolldown-vite/issues/450
129
129
-**[TODO: fix before stable release]** Legacy chunks are emitted as an asset file instead of a chunk file due to the lack of prebuilt chunk emit feature ([rolldown#4304](https://github.com/rolldown/rolldown/issues/4034)). This means the chunk related options does not apply to legacy chunks and the manifest file will not include legacy chunks as a chunk file.
130
130
-**[TODO: fix before stable release]** resolver cache breaks minor cases in Vitest ([rolldown-vite#466](https://github.com/vitejs/rolldown-vite/issues/466), [vitest#8754](https://github.com/vitest-dev/vitest/issues/8754#issuecomment-3441115032))
0 commit comments