Browse Source

fix(runtime-core): add `v-memo` to built-in directives check (#4787)

C.Y.Kun 4 năm trước cách đây
mục cha
commit
5eb72630a5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/runtime-core/src/directives.ts

+ 1 - 1
packages/runtime-core/src/directives.ts

@@ -64,7 +64,7 @@ export type Directive<T = any, V = any> =
 export type DirectiveModifiers = Record<string, boolean>
 
 const isBuiltInDirective = /*#__PURE__*/ makeMap(
-  'bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text'
+  'bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo'
 )
 
 export function validateDirectiveName(name: string) {