diff --git a/packages/astro/src/runtime/server/index.ts b/packages/astro/src/runtime/server/index.ts index 433df1a99..762e764ce 100644 --- a/packages/astro/src/runtime/server/index.ts +++ b/packages/astro/src/runtime/server/index.ts @@ -435,7 +435,11 @@ function internalSpreadAttributes(values: Record, shouldEscape = true) } // Adds support for ` -export function spreadAttributes(values: Record, name: string, { class: scopedClassName }: { class?: string } = {}) { +export function spreadAttributes( + values: Record, + name: string, + { class: scopedClassName }: { class?: string } = {} +) { let output = ''; // If the compiler passes along a scoped class, merge with existing props or inject it if (scopedClassName) {