mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(schema): transpile nuxt/app
by default (#19009)
This commit is contained in:
parent
b1b908b1ed
commit
2960aa3426
@ -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
|
||||
nuxt.options.build.transpile.push(
|
||||
...nuxt.options._layers.filter(i => i.cwd.includes('node_modules')).map(i => i.cwd as string)
|
||||
|
Loading…
Reference in New Issue
Block a user