]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: avoid toHandlers not treeshaken
authorEvan You <evan@vuejs.org>
Mon, 2 Dec 2024 13:00:52 +0000 (21:00 +0800)
committerEvan You <evan@vuejs.org>
Mon, 2 Dec 2024 13:00:52 +0000 (21:00 +0800)
packages/runtime-vapor/src/helpers/toHandlers.ts

index 5072af8936ced397a40189dc81ee58f52d85c98f..938d2b5499624881bd999d2cdada7f61ab210f4d 100644 (file)
@@ -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)