Skip to content

Commit 598148c

Browse files
authored
docs: update react plugin description (#2491)
1 parent 586f71e commit 598148c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

guide/performance.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

plugins/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)