Skip to content

Commit 8170220

Browse files
committed
fix: use import.meta.env.DEV to detect development environment
1 parent c2995ff commit 8170220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.dev) {
35+
if (!variants.initial && import.meta.env.DEV) {
3636
console.warn(
3737
`Your directive v-motion-${key} is missing initial variant!`,
3838
)

0 commit comments

Comments
 (0)