diff --git a/packages/core/src/composables/use-style.ts b/packages/core/src/composables/use-style.ts index b5d1d1c..9176b71 100644 --- a/packages/core/src/composables/use-style.ts +++ b/packages/core/src/composables/use-style.ts @@ -40,10 +40,13 @@ function useTransform(target: PermissiveTarget) { } export function useStyle(target: PermissiveTarget, options: UseStyleOptions = {}) { - let observer: MutationObserver + const transform = ref>({}) + + if (import.meta.server) + return { transform } + let observer: MutationObserver const domRef = toRef(target) - const transform = ref>({}) if (domRef.value) transform.value = useTransform(domRef).value