Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 4f90523

Browse files
committed
fix: pass warn to toHandlers only on dev mode
1 parent e2b51d6 commit 4f90523

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { toHandlers as _toHandlers } from '@vue/runtime-shared'
22
import { warn } from '../warning'
3+
import { NOOP } from '@vue/shared'
34

4-
export const toHandlers = _toHandlers.bind(undefined, warn)
5+
export const toHandlers = _toHandlers.bind(undefined, __DEV__ ? warn : NOOP)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { toHandlers as _toHandlers } from '@vue/runtime-shared'
22
import { warn } from '../warning'
3+
import { NOOP } from '@vue/shared'
34

4-
export const toHandlers = _toHandlers.bind(undefined, warn)
5+
export const toHandlers = _toHandlers.bind(undefined, __DEV__ ? warn : NOOP)

0 commit comments

Comments
 (0)