fix(webpack): transpile rest of nuxt runtime directories (#19936)

This commit is contained in:
Daniel Roe 2023-03-30 17:24:18 +01:00 committed by GitHub
parent a96451d2df
commit 99ac1d5976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@ export function baseTranspile (ctx: WebpackConfigContext) {
/\.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($|\/)/ /(^|\/)nuxt\/(dist\/)?(app|[^/]+\/runtime)($|\/)/
] ]
for (let pattern of options.build.transpile) { for (let pattern of options.build.transpile) {