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

This commit is contained in:
C.Y.Kun 2021-10-19 08:22:44 +08:00 committed by GitHub
parent 7bb9dd09c5
commit 5eb72630a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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) {