[[nuxt.config]]の `typescript.tsConfig` に追加する。
```ts
export default defineNuxtConfig({
typescript: {
tsConfig: {
vueCompilerOptions: {
strictTemplates: true,
},
},
},
});
```
これでdevサーバーを実行すると、`tsconfig.app.json` などに設定が追加されている。
```ts
{
// 中略
"vueCompilerOptions": {
"strictTemplates": true
}
}
```
> **Note**: These aliases will be automatically added to the generated TypeScript configurations (`.nuxt/tsconfig.app.json`, `.nuxt/tsconfig.server.json`, etc.) so you can get full type support and path auto-complete. In case you need to extend options provided by the generated configurations further, make sure to add them here or within the `typescript.tsConfig` property in `nuxt.config`.
>
> *[Nuxt Configuration v4](https://nuxt.com/docs/4.x/api/nuxt-config#alias)*