From ceac86e3489561f4e6ba1eab69bdb1a896c63bdc Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 23 Dec 2024 16:28:19 +0000 Subject: [PATCH] fix(schema): gate inline style change behind v4 check --- packages/schema/src/config/experimental.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }, },