Skip to content

Commit 0da438b

Browse files
committed
wip: update
1 parent f8322d7 commit 0da438b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/guide/migration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Note that if you use a plugin that uses `transformWithEsbuild` function, you nee
5353

5454
TODO: No Native Decorator Support
5555
TODO: `supported` option https://github.com/rolldown/rolldown/issues/6212
56+
TODO: `jsxSideEffects` option
5657

5758
### JS Minification by Oxc
5859

@@ -69,11 +70,10 @@ LightningCSS is now used for CSS minification by default. You can use `build.css
6970

7071
**_TODO: write this section_**
7172

72-
https://github.com/rolldown/rolldown/issues/6269
7373
https://github.com/rolldown/rolldown/issues/6438
7474
https://esbuild.github.io/content-types/#default-interop
7575

76-
### Module Resolution Using Format Sniffing
76+
### Removed Module Resolution Using Format Sniffing
7777

7878
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`).
7979

@@ -85,6 +85,7 @@ When both `browser` and `module` fields are present in `package.json`, Vite used
8585

8686
`require` calls for externalized modules are now preserved as `require` calls and not converted to `import` statements.
8787

88+
https://github.com/rolldown/rolldown/issues/6269
8889
https://rolldown.rs/in-depth/bundling-cjs#require-external-modules
8990

9091
_**TODO: write this section**_
@@ -93,7 +94,7 @@ _**TODO: write this section**_
9394

9495
_**TODO: write this section**_
9596

96-
https://github.com/rolldown/rolldown/issues/3301
97+
https://rolldown.rs/in-depth/non-esm-output-formats#well-known-import-meta-properties
9798

9899
### Removed `build.rollupOptions.watch.chokidar` option
99100

@@ -124,7 +125,6 @@ There are other breaking changes which only affect few users.
124125
- **[TODO: fix before stable release (better if it's fixed before first beta)]** https://github.com/rolldown/rolldown/issues/5867
125126
- **[TODO: fix before stable release]** https://github.com/rolldown/rolldown/issues/5726 (affects nuxt, qwik)
126127
- **[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
128128
- **[TODO: fix before stable release]** https://github.com/vitejs/rolldown-vite/issues/450
129129
- **[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.
130130
- **[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

Comments
 (0)