fix(schema): gate inline style change behind v4 check

This commit is contained in:
Daniel Roe 2024-12-23 16:28:19 +00:00
parent 63c3548072
commit ceac86e348
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -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<string, unknown>).compatibilityVersion === 4 ? (id: string) => id && id.includes('.vue') : true)
},
},