From b2bac9fa1763ab895f9bea18ef83d58673e1a4ec Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 21 Jan 2022 14:29:45 +0800 Subject: [PATCH] chore: comment dom tag config usage [ci skip] --- packages/shared/src/domTagConfig.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/shared/src/domTagConfig.ts b/packages/shared/src/domTagConfig.ts index de2952a418a..1f8605d9fc4 100644 --- a/packages/shared/src/domTagConfig.ts +++ b/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)