Browse Source

chore: comment dom tag config usage [ci skip]

Evan You 4 năm trước cách đây
mục cha
commit
b2bac9fa17
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      packages/shared/src/domTagConfig.ts

+ 12 - 0
packages/shared/src/domTagConfig.ts

@@ -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)