Skip to content

Commit 96578cd

Browse files
committed
Latest
1 parent ee0e0df commit 96578cd

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

packages/motion-dom/src/effects/attr/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ export const addAttrValue = (
2020
})
2121
}
2222

23-
export const attrEffect = createSelectorEffect(createEffect(addAttrValue))
23+
export const attrEffect = /*@__PURE__*/ createSelectorEffect(
24+
/*@__PURE__*/ createEffect(addAttrValue)
25+
)

packages/motion-dom/src/effects/prop/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { MotionValue } from "../../value"
22
import { MotionValueState } from "../MotionValueState"
33
import { createEffect } from "../utils/create-effect"
44

5-
export const propEffect = createEffect(
5+
export const propEffect = /*@__PURE__*/ createEffect(
66
(
77
subject: { [key: string]: any },
88
state: MotionValueState,

packages/motion-dom/src/effects/style/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,6 @@ export const addStyleValue = (
4949
return state.set(key, value, render, computed)
5050
}
5151

52-
export const styleEffect = createSelectorEffect(createEffect(addStyleValue))
52+
export const styleEffect = /*@__PURE__*/ createSelectorEffect(
53+
/*@__PURE__*/ createEffect(addStyleValue)
54+
)

packages/motion-dom/src/effects/svg/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ const addSVGValue = (
1515
return handler(element, state, key, value)
1616
}
1717

18-
export const svgEffect = createSelectorEffect(createEffect(addSVGValue))
18+
export const svgEffect = /*@__PURE__*/ createSelectorEffect(
19+
/*@__PURE__*/ createEffect(addSVGValue)
20+
)

0 commit comments

Comments
 (0)