Skip to content

Commit b2bac9f

Browse files
committedJan 21, 2022
chore: comment dom tag config usage [ci skip]
1 parent 97f6bd9 commit b2bac9f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎packages/shared/src/domTagConfig.ts

+12
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ const SVG_TAGS =
3030
const VOID_TAGS =
3131
'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr'
3232

33+
/**
34+
* Compiler only.
35+
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
36+
*/
3337
export const isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS)
38+
/**
39+
* Compiler only.
40+
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
41+
*/
3442
export const isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS)
43+
/**
44+
* Compiler only.
45+
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
46+
*/
3547
export const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS)

0 commit comments

Comments
 (0)
Please sign in to comment.