docs: recommend to not overwrite some keys in tsconfig (#7717)

This commit is contained in:
Tobias Diez 2022-09-21 16:06:20 +02:00 committed by GitHub
parent 427b427d7e
commit daf99c3cac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,4 +14,4 @@ Nuxt [automatically generates](/guide/concepts/typescript) a `.nuxt/tsconfig.jso
} }
``` ```
As you need to, you can customize the contents of this file. However, note that if you need to customize your `paths`, this will override the auto-generated path aliases. Instead, we recommend that you add any path aliases you need to the `alias` property within your `nuxt.config`, where they will get picked up and added to the autogenerated `tsconfig`. As you need to, you can customize the contents of this file. However, it is recommended that you don't overwrite `target`, `module` and `moduleResolution`. Moreover, note that if you need to customize your `paths`, this will override the auto-generated path aliases. Instead, we recommend that you add any path aliases you need to the `alias` property within your `nuxt.config`, where they will get picked up and added to the auto-generated `tsconfig`.