mirror of https://github.com/vuejs/core.git
fix: pass warn to `toHandlers` only on dev mode
This commit is contained in:
parent
e2b51d6e7a
commit
4f9052358e
|
@ -1,4 +1,5 @@
|
|||
import { toHandlers as _toHandlers } from '@vue/runtime-shared'
|
||||
import { warn } from '../warning'
|
||||
import { NOOP } from '@vue/shared'
|
||||
|
||||
export const toHandlers = _toHandlers.bind(undefined, warn)
|
||||
export const toHandlers = _toHandlers.bind(undefined, __DEV__ ? warn : NOOP)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { toHandlers as _toHandlers } from '@vue/runtime-shared'
|
||||
import { warn } from '../warning'
|
||||
import { NOOP } from '@vue/shared'
|
||||
|
||||
export const toHandlers = _toHandlers.bind(undefined, warn)
|
||||
export const toHandlers = _toHandlers.bind(undefined, __DEV__ ? warn : NOOP)
|
||||
|
|
Loading…
Reference in New Issue