File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,42 @@ Rolldown は不明または無効なオプションが渡されるとエラー
9999
100100このオプションを自身で設定していない場合は、使用しているフレームワークで修正される可能性があります。それまでの間、` ROLLDOWN_OPTIONS_VALIDATION=loose ` 環境変数を設定することでこのエラーを抑制できます。
101101
102+ ### API の違い
103+
104+ #### ` manualChunks ` から ` advancedChunks ` へ
105+
106+ Rolldown は Rollup で利用可能だった ` manualChunks ` オプションをサポートしていません。代わりに、webpack の ` splitChunk ` に似た、よりきめ細かい設定を [ ` advancedChunks ` オプション] ( https://rolldown.rs/guide/in-depth/advanced-chunks#advanced-chunks ) を通じて提供します:
107+
108+ ``` js
109+ // 以前の設定 (Rollup)
110+ export default {
111+ build: {
112+ rollupOptions: {
113+ output: {
114+ manualChunks (id ) {
115+ if (/ \/ react(?:-dom)? / .test (id)) {
116+ return ' vendor'
117+ }
118+ }
119+ }
120+ }
121+ }
122+ }
123+
124+ // 新しい設定 (Rolldown)
125+ export default {
126+ build: {
127+ rollupOptions: {
128+ output: {
129+ advancedChunks: {
130+ groups: [{ name: ' vendor' , test: / \/ react(?:-dom)? / / }]
131+ }
132+ }
133+ }
134+ }
135+ }
136+ ```
137+
102138## パフォーマンス
103139
104140` rolldown-vite ` は既存のエコシステムとの互換性を確保することに重点を置いており、デフォルトはスムーズな移行を目的としています。より高速な Rust ベースの内部プラグインやその他のカスタマイズに切り替えることで、さらなるパフォーマンス向上を得ることができます。
You can’t perform that action at this time.
0 commit comments