fix(schema): transpile nuxt/app by default (#19009)

This commit is contained in:
Daniel Roe 2023-02-14 00:23:12 +00:00 committed by GitHub
parent b1b908b1ed
commit 2960aa3426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,6 +112,9 @@ async function initNuxt (nuxt: Nuxt) {
}) })
} }
// Transpile #app if it is imported directly from subpath export
nuxt.options.build.transpile.push('nuxt/app')
// Transpile layers within node_modules // Transpile layers within node_modules
nuxt.options.build.transpile.push( nuxt.options.build.transpile.push(
...nuxt.options._layers.filter(i => i.cwd.includes('node_modules')).map(i => i.cwd as string) ...nuxt.options._layers.filter(i => i.cwd.includes('node_modules')).map(i => i.cwd as string)