diff --git a/packages/schema/src/config/experimental.ts b/packages/schema/src/config/experimental.ts index 6f3473891a..90c0bc4add 100644 --- a/packages/schema/src/config/experimental.ts +++ b/packages/schema/src/config/experimental.ts @@ -60,7 +60,7 @@ export default defineUntypedSchema({ return false } // Enabled by default for vite prod with ssr (for vue components) - return val ?? ((id: string) => id && id.includes('.vue')) + return val ?? ((await get('future') as Record).compatibilityVersion === 4 ? (id: string) => id && id.includes('.vue') : true) }, },