mirror of https://github.com/vuejs/core.git
chore: avoid toHandlers not treeshaken
This commit is contained in:
parent
f3b90706ef
commit
0986051f12
|
@ -2,7 +2,8 @@ import { toHandlers as _toHandlers } from '@vue/runtime-shared'
|
|||
import { warn } from '../warning'
|
||||
import { NOOP } from '@vue/shared'
|
||||
|
||||
export const toHandlers: (
|
||||
export const toHandlers = (
|
||||
obj: Record<string, any>,
|
||||
preserveCaseIfNecessary?: boolean | undefined,
|
||||
) => Record<string, any> = _toHandlers.bind(undefined, __DEV__ ? warn : NOOP)
|
||||
): Record<string, any> =>
|
||||
_toHandlers(__DEV__ ? warn : NOOP, obj, preserveCaseIfNecessary)
|
||||
|
|
Loading…
Reference in New Issue