File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export const MotionPlugin = {
32
32
const variants = options . directives [ key ] as MotionVariants < any >
33
33
34
34
// Development warning, showing definitions missing `initial` key
35
- if ( ! variants . initial && import . meta. env . DEV ) {
35
+ if ( ! variants . initial && import . meta. env . MODE === 'development' ) {
36
36
console . warn (
37
37
`Your directive v-motion-${ key } is missing initial variant!` ,
38
38
)
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ export function setupMotionComponent(
195
195
} )
196
196
197
197
// Replay animations on component update Vue
198
- if ( import . meta. env . DEV ) {
198
+ if ( import . meta. env . MODE === 'development' ) {
199
199
// Validate passed preset
200
200
if (
201
201
props . preset != null
Original file line number Diff line number Diff line change 1
1
export const CUSTOM_PRESETS = Symbol (
2
- import . meta. env . DEV ? 'motionCustomPresets' : '' ,
2
+ import . meta. env . MODE === 'development' ? 'motionCustomPresets' : '' ,
3
3
)
You can’t perform that action at this time.
0 commit comments