Skip to content

Commit ad27084

Browse files
committed
fix: use import.meta.env to check environment
1 parent 8170220 commit ad27084

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utils/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export function setupMotionComponent(
195195
})
196196

197197
// Replay animations on component update Vue
198-
if (import.meta.dev) {
198+
if (import.meta.env.DEV) {
199199
// Validate passed preset
200200
if (
201201
props.preset != null

src/utils/keys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const CUSTOM_PRESETS = Symbol(
2-
import.meta.dev ? 'motionCustomPresets' : '',
2+
import.meta.env.DEV ? 'motionCustomPresets' : '',
33
)

0 commit comments

Comments
 (0)