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 6c600c2b03
commit 32d9e2fe74
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -60,7 +60,7 @@ export default defineUntypedSchema({
return false return false
} }
// Enabled by default for vite prod with ssr (for vue components) // 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)
}, },
}, },