wip: new cssVars SSR integration + fix cssVars SSR injection for suspense
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
export function ssrResolveCssVars(
|
||||
source: Record<string, string>,
|
||||
scopeId?: string
|
||||
) {
|
||||
const style: Record<string, string> = {}
|
||||
const prefix = scopeId ? `${scopeId.replace(/^data-v-/, '')}-` : ``
|
||||
for (const key in source) {
|
||||
style[`--${prefix}${key}`] = source[key]
|
||||
}
|
||||
return { style }
|
||||
}
|
||||
Reference in New Issue
Block a user