File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
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 . MODE === 'development' ) {
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 . MODE === 'development' ) {
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 11const isBrowser = typeof window !== 'undefined'
22
3- export const supportsPointerEvents = ( ) => isBrowser && ( window . onpointerdown === null || import . meta. env . TEST )
3+ export const supportsPointerEvents = ( ) => isBrowser && ( window . onpointerdown === null || import . meta. env ? .TEST )
44
5- export const supportsTouchEvents = ( ) => isBrowser && ( window . ontouchstart === null || import . meta. env . TEST )
5+ export const supportsTouchEvents = ( ) => isBrowser && ( window . ontouchstart === null || import . meta. env ? .TEST )
66
7- export const supportsMouseEvents = ( ) => isBrowser && ( window . onmousedown === null || import . meta. env . TEST )
7+ export const supportsMouseEvents = ( ) => isBrowser && ( window . onmousedown === null || import . meta. env ? .TEST )
Original file line number Diff line number Diff line change 11export const CUSTOM_PRESETS = Symbol (
2- import . meta. env . MODE === 'development' ? 'motionCustomPresets' : '' ,
2+ import . meta. env ? .MODE === 'development' ? 'motionCustomPresets' : '' ,
33)
You can’t perform that action at this time.
0 commit comments