File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Vite ベースのセットアップでは、開発サーバーとそのバンド
42
42
43
43
` tsconfig.json ` を手動で構成する場合、いくつかの注目すべきオプションは以下の通りです:
44
44
45
- - Vite は TypeScript のトランスパイルに [ esbuild] ( https://esbuild.github.io/ ) を使用しており、単一ファイルのトランスパイル制限に従うので、[ ` compilerOptions.isolatedModules ` ] ( https://www.typescriptlang.org/tsconfig#isolatedModules ) を ` true ` に設定してください。
45
+ - Vite は TypeScript のトランスパイルに [ esbuild] ( https://esbuild.github.io/ ) を使用しており、単一ファイルのトランスパイル制限に従うので、[ ` compilerOptions.isolatedModules ` ] ( https://www.typescriptlang.org/tsconfig#isolatedModules ) を ` true ` に設定してください。[ ` compilerOptions.verbatimModuleSyntax ` ] ( https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax ) は [ ` isolatedModules ` のスーパーセット ] ( https://github.com/microsoft/TypeScript/issues/53601 ) であり、これも良い選択です。これは [ ` @vue/tsconfig ` ] ( https://github.com/vuejs/tsconfig ) で使用されています。
46
46
47
47
- Options API を使用する場合は、コンポーネントオプションにおける this の型チェックを活用するために [ ` compilerOptions.strict ` ] ( https://www.typescriptlang.org/tsconfig#strict ) を ` true ` に設定 (もしくは少なくとも strict フラグの一部である [ ` compilerOptions.noImplicitThis ` ] ( https://www.typescriptlang.org/tsconfig#noImplicitThis ) を ` true ` に設定) する必要があります。そうでないと、this は常に any 型として扱われます。
48
48
You can’t perform that action at this time.
0 commit comments