perf: tree-shake dependencies from server (#1647)
This commit is contained in:
parent
357dff2140
commit
6dc38c7d8e
12 changed files with 90 additions and 19 deletions
|
@ -21,7 +21,7 @@ const { modelValue } = defineModel<{
|
|||
const target = ref()
|
||||
|
||||
const animateTimeout = useTimeout(10)
|
||||
const reduceMotion = useReducedMotion()
|
||||
const reduceMotion = process.server ? ref(false) : useReducedMotion()
|
||||
|
||||
const canAnimate = computed(() => !reduceMotion.value && animateTimeout.value)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue