diff --git a/packages/schema/src/config/experimental.ts b/packages/schema/src/config/experimental.ts index 8a00c71794..6f3473891a 100644 --- a/packages/schema/src/config/experimental.ts +++ b/packages/schema/src/config/experimental.ts @@ -59,8 +59,8 @@ export default defineUntypedSchema({ if (val === false || (await get('dev')) || (await get('ssr')) === false || (await get('builder')) === '@nuxt/webpack-builder') { return false } - // Enabled by default for vite prod with ssr - return val ?? true + // Enabled by default for vite prod with ssr (for vue components) + return val ?? ((id: string) => id && id.includes('.vue')) }, },