diff --git a/packages/nuxt/src/core/nitro.ts b/packages/nuxt/src/core/nitro.ts index 2c47536646..fe5ab43f70 100644 --- a/packages/nuxt/src/core/nitro.ts +++ b/packages/nuxt/src/core/nitro.ts @@ -82,6 +82,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) { '@nuxt/', nuxt.options.buildDir ]), + ...nuxt.options.build.transpile.filter(i => typeof i === 'string'), 'nuxt/dist', 'nuxt3/dist', distDir