Skip to content
Permalink
Browse files
chore: comment dom tag config usage [ci skip]
  • Loading branch information
yyx990803 committed Jan 21, 2022
1 parent 97f6bd9 commit b2bac9f
Showing 1 changed file with 12 additions and 0 deletions.
@@ -30,6 +30,18 @@ const SVG_TAGS =
const VOID_TAGS =
'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr'

/**
* Compiler only.
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
*/
export const isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS)
/**
* Compiler only.
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
*/
export const isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS)
/**
* Compiler only.
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
*/
export const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS)

0 comments on commit b2bac9f

Please sign in to comment.