diff --git a/packages/schema/src/config/experimental.ts b/packages/schema/src/config/experimental.ts index 8d824f3afb..88f4c37cd3 100644 --- a/packages/schema/src/config/experimental.ts +++ b/packages/schema/src/config/experimental.ts @@ -93,7 +93,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) }, },