From 2960aa3426e4d993ca6aec1b10333534ab7385a6 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 14 Feb 2023 00:23:12 +0000 Subject: [PATCH] fix(schema): transpile `nuxt/app` by default (#19009) --- packages/nuxt/src/core/nuxt.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/nuxt/src/core/nuxt.ts b/packages/nuxt/src/core/nuxt.ts index 9c6345ee70..3d8dddab80 100644 --- a/packages/nuxt/src/core/nuxt.ts +++ b/packages/nuxt/src/core/nuxt.ts @@ -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)