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