File tree Expand file tree Collapse file tree 5 files changed +23
-23
lines changed
src/content/reference/react-compiler Expand file tree Collapse file tree 5 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ title: compilationMode
2424
2525React Compiler が最適化する関数を決定する方法を制御します。
2626
27- #### Type {/* type* /}
27+ #### 型 {/* type* /}
2828
2929```
3030'infer' | 'syntax' | 'annotation' | 'all'
@@ -34,17 +34,17 @@ React Compiler が最適化する関数を決定する方法を制御します
3434
3535` 'infer' `
3636
37- #### Options {/* options* /}
37+ #### 指定可能な値 {/* options* /}
3838
39- - ** ` 'infer' ` ** (デフォルト): コンパイラは高度なヒューリスティックを使用して React コンポーネントとフックを識別します。
39+ - ** ` 'infer' ` ** (デフォルト): コンパイラは高度なヒューリスティックを使用して React コンポーネントとフックを識別します。
4040 - ` "use memo" ` ディレクティブで明示的にアノテーションされた関数
4141 - コンポーネント(パスカルケース)やフック(` use ` プレフィックス)の規約で命名され、かつ、JSX の作成あるいは他のフックの呼び出しを行っている関数
4242
43- - ** ` 'annotation' ` ** : ` "use memo" ` ディレクティブで明示的にマークされた関数のみをコンパイルします。段階的導入に最適です。
43+ - ** ` 'annotation' ` ** : ` "use memo" ` ディレクティブで明示的にマークされた関数のみをコンパイルします。段階的導入に最適です。
4444
45- - ** ` 'syntax' ` ** : Flow の [ component] ( https://flow.org/en/docs/react/component-syntax/ ) および [ hook] ( https://flow.org/en/docs/react/hook-syntax/ ) 構文を使用するコンポーネントとフックのみをコンパイルします。
45+ - ** ` 'syntax' ` ** : Flow の [ component] ( https://flow.org/en/docs/react/component-syntax/ ) および [ hook] ( https://flow.org/en/docs/react/hook-syntax/ ) 構文を使用するコンポーネントとフックのみをコンパイルします。
4646
47- - ** ` 'all' ` ** : すべてのトップレベル関数をコンパイルします。非 React 関数もコンパイルする可能性があるため推奨されません。
47+ - ** ` 'all' ` ** : すべてのトップレベル関数をコンパイルします。非 React 関数もコンパイルする可能性があるため推奨されません。
4848
4949#### 注意点 {/* caveats* /}
5050
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ title: gating
2727
2828コンパイルされた関数に対する、ランタイムのフィーチャーフラグによる制御を設定します。
2929
30- #### Type {/* type* /}
30+ #### 型 {/* type* /}
3131
3232```
3333{
@@ -40,10 +40,10 @@ title: gating
4040
4141` null `
4242
43- #### Properties {/* properties* /}
43+ #### プロパティ {/* properties* /}
4444
45- - ** ` source ` ** : フィーチャーフラグをインポートするモジュールパス
46- - ** ` importSpecifierName ` ** : インポートするエクスポートされた関数の名前
45+ - ** ` source ` ** : フィーチャーフラグをインポートするモジュールパス
46+ - ** ` importSpecifierName ` ** : インポートするエクスポートされた関数の名前
4747
4848#### 注意点 {/* caveats* /}
4949
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ title: logger
2828
2929コンパイラの動作を追跡しエラーをデバッグするための、カスタムのロギング方法を設定します。
3030
31- #### Type {/* type* /}
31+ #### 型 {/* type* /}
3232
3333```
3434{
@@ -40,18 +40,18 @@ title: logger
4040
4141` null `
4242
43- #### Methods {/* methods* /}
43+ #### メソッド {/* methods* /}
4444
4545- ** ` logEvent ` ** : 各コンパイライベントに対して、ファイル名およびイベント詳細を引数にして呼び出される。
4646
4747#### イベントタイプ {/* event-types* /}
4848
49- - ** ` CompileSuccess ` ** : 関数が正常にコンパイルされた
50- - ** ` CompileError ` ** : エラーにより関数がスキップされた
51- - ** ` CompileDiagnostic ` ** : 致命的でない診断情報
52- - ** ` CompileSkip ` ** : その他の理由で関数がスキップされた
53- - ** ` PipelineError ` ** : 予期しないコンパイルエラー
54- - ** ` Timing ` ** : パフォーマンスの測定情報
49+ - ** ` CompileSuccess ` ** : 関数が正常にコンパイルされた
50+ - ** ` CompileError ` ** : エラーにより関数がスキップされた
51+ - ** ` CompileDiagnostic ` ** : 致命的でない診断情報
52+ - ** ` CompileSkip ` ** : その他の理由で関数がスキップされた
53+ - ** ` PipelineError ` ** : 予期しないコンパイルエラー
54+ - ** ` Timing ` ** : パフォーマンスの測定情報
5555
5656#### 注意点 {/* caveats* /}
5757
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ title: panicThreshold
2424
2525コンパイルエラーでビルドを失敗させるか、最適化をスキップするかを決定します。
2626
27- #### Type {/* type* /}
27+ #### 型 {/* type* /}
2828
2929```
3030'none' | 'critical_errors' | 'all_errors'
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ title: target
2424
2525コンパイル出力の React バージョンの互換性を設定します。
2626
27- #### Type {/* type* /}
27+ #### 型 {/* type* /}
2828
2929```
3030'17' | '18' | '19'
@@ -36,9 +36,9 @@ title: target
3636
3737#### 有効な値 {/* valid-values* /}
3838
39- - ** ` '19' ` ** : React 19 がターゲット(デフォルト)。追加のランタイムパッケージは不要です。
40- - ** ` '18' ` ** : React 18 がターゲット。` react-compiler-runtime ` パッケージが必要です。
41- - ** ` '17' ` ** : React 17 がターゲット。` react-compiler-runtime ` パッケージが必要です。
39+ - ** ` '19' ` ** : React 19 がターゲット(デフォルト)。追加のランタイムパッケージは不要です。
40+ - ** ` '18' ` ** : React 18 がターゲット。` react-compiler-runtime ` パッケージが必要です。
41+ - ** ` '17' ` ** : React 17 がターゲット。` react-compiler-runtime ` パッケージが必要です。
4242
4343#### 注意点 {/* caveats* /}
4444
You can’t perform that action at this time.
0 commit comments