perf(nuxt): verbatim module syntax + restrict type discovery (#23447)

This commit is contained in:
Daniel Roe 2023-10-02 11:32:46 +01:00 committed by GitHub
parent 3bde91439a
commit 770d4c67f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,9 +134,8 @@ export async function writeTypes (nuxt: Nuxt) {
strict: nuxt.options.typescript?.strict ?? true, strict: nuxt.options.typescript?.strict ?? true,
noImplicitThis: true, noImplicitThis: true,
esModuleInterop: true, esModuleInterop: true,
// TODO: enable by default in v3.8 types: [],
// types: [], verbatimModuleSyntax: true,
// verbatimModuleSyntax: true,
allowJs: true, allowJs: true,
noEmit: true, noEmit: true,
resolveJsonModule: true, resolveJsonModule: true,