]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-core): add `v-memo` to built-in directives check (#4787)
authorC.Y.Kun <30518686+undefined-degisn@users.noreply.github.com>
Tue, 19 Oct 2021 00:22:44 +0000 (08:22 +0800)
committerGitHub <noreply@github.com>
Tue, 19 Oct 2021 00:22:44 +0000 (20:22 -0400)
packages/runtime-core/src/directives.ts

index 58e56df0522d16c524f1b768da259d450ff6238a..ec13e951bccb8ba1f7ab1fa95ebea29bb4a1b71b 100644 (file)
@@ -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) {