fix(webpack): transpile app directory (#19773)

This commit is contained in:
Daniel Roe 2023-03-17 18:59:57 +00:00 committed by GitHub
parent 633f781d6f
commit 5a1cfa8b66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,8 @@ export function baseTranspile (ctx: WebpackConfigContext) {
const transpile = [ const transpile = [
/\.vue\.js/i, // include SFCs in node_modules /\.vue\.js/i, // include SFCs in node_modules
/consola\/src/, /consola\/src/,
/vue-demi/ /vue-demi/,
/(^|\/)nuxt\/(dist\/)?app($|\/)/
] ]
for (let pattern of options.build.transpile) { for (let pattern of options.build.transpile) {