Răsfoiți Sursa

chore: avoid toHandlers not treeshaken

Evan You 1 an în urmă
părinte
comite
0986051f12
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 3 2
      packages/runtime-vapor/src/helpers/toHandlers.ts

+ 3 - 2
packages/runtime-vapor/src/helpers/toHandlers.ts

@@ -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)