File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -91,13 +91,6 @@ Vite は `esbuild` と同じ動作に従い、`tsconfig.json` 内の `target`
9191
9292開発中に target を指定するには [ ` esbuild.target ` ] ( /config/shared-options.html#esbuild ) オプションを使用することができ、トランスパイルを最小限に抑えるためにデフォルトで ` esnext ` に設定されます。ビルドでは、[ ` build.target ` ] ( /config/build-options.html#build-target ) オプションが優先され、必要に応じて設定することができます。
9393
94- ::: warning ` useDefineForClassFields `
95-
96- ` tsconfig.json ` 内の ` target ` が ` ESNext ` または ` ES2022 ` 以降でない場合、または ` tsconfig.json ` ファイルがない場合、` useDefineForClassFields ` のデフォルトは ` false ` になり、` esbuild.target ` のデフォルト値が ` esnext ` の場合に問題が発生する可能性があります。これは[ 静的初期化ブロック] ( https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Classes/Static_initialization_blocks#browser_compatibility ) にトランスパイルされる可能性があり、ブラウザーでサポートされていない可能性があります。
97-
98- そのため、` tsconfig.json ` を設定する際には、` target ` を ` ESNext ` または ` ES2022 ` 以降に設定するか、` useDefineForClassFields ` を明示的に ` true ` に設定することをおすすめします。
99- :::
100-
10194#### ` emitDecoratorMetadata `
10295
10396- [ TypeScript ドキュメント] ( https://www.typescriptlang.org/tsconfig#emitDecoratorMetadata )
You can’t perform that action at this time.
0 commit comments