diff --git a/packages/astro/src/runtime/server/render/util.ts b/packages/astro/src/runtime/server/render/util.ts index 1e6ce35a6..cb96da29f 100644 --- a/packages/astro/src/runtime/server/render/util.ts +++ b/packages/astro/src/runtime/server/render/util.ts @@ -28,7 +28,7 @@ const kebab = (k: string) => const toStyleString = (obj: Record) => Object.entries(obj) .map(([k, v]) => { - if (k[0] !== '-' && k[1] !== '-') return `${kebab(k)}:${v}` + if (k[0] !== '-' && k[1] !== '-') return `${kebab(k)}:${v}`; // TODO: Remove in v3! See #6264 // We need to emit --kebab-case AND --camelCase for backwards-compat in v2, // but we should be able to remove this workaround in v3.