File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ export default defineConfig({
116116
117117- 可能な限り、Sass/Less/Stylus の代わりに CSS を使用する(ネストは PostCSS / Lightning CSS で処理できます)。
118118- SVG を UI フレームワークのコンポーネント(React、Vue など)に変換しないでください。代わりに文字列または URL としてインポートしてください。
119- - ` vitejs/plugin-react ` を使用する場合は Babel オプションの設定を避けると、ビルド時の変換をスキップします(Oxc のみが使用されます)。
120119
121120ネイティブツールの使用例:
122121
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ Vue 3 の JSX([専用の Babel transform](https://github.com/vuejs/babel-plugi
1818
1919### [ @vitejs/plugin-react ] ( https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react )
2020
21- [ Oxc Transformer] ( https://oxc.rs/docs/guide/usage/transformer ) と [ Babel ] ( https://babeljs.io/ ) を使用し、小さなパッケージフットプリントで高速な HMR や、Babel 変換パイプラインを使用できる柔軟性を実現します。Babel プラグインを追加しない場合は、Oxc Transformer のみが使用されます 。
21+ [ Oxc Transformer] ( https://oxc.rs/docs/guide/usage/transformer ) を介して React Fast Refresh サポートを提供します 。
2222
2323### [ @vitejs/plugin-react-swc ] ( https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc )
2424
25- 開発中は Babel を [ SWC] ( https://swc.rs/ ) に置き換えます。プロダクションビルド時には、プラグインを使用する場合は SWC+Oxc Transformer、それ以外は Oxc Transformer のみを使用します 。カスタムプラグインが必要な大きなプロジェクトでは、そのプラグインが SWC でも利用可能な場合、コールドスタートやホットモジュールリプレースメント(HMR)が大幅に高速化されます。
25+ SWC プラグインを使用するために、 開発中は Oxc を [ SWC] ( https://swc.rs/ ) に置き換えます。プロダクションビルド時には、プラグインを使用する場合は SWC+Oxc Transformer を使用します 。カスタムプラグインが必要な大きなプロジェクトでは、そのプラグインが SWC でも利用可能な場合、コールドスタートやホットモジュールリプレースメント(HMR)が大幅に高速化されます。
2626
2727### [ @vitejs/plugin-rsc ] ( https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc )
2828
You can’t perform that action at this time.
0 commit comments