File tree 1 file changed +9
-4
lines changed
packages/compiler-core/src
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,16 @@ import {
9
9
import { ParserPlugin } from '@babel/parser'
10
10
11
11
export interface ParserOptions {
12
- isVoidTag ?: ( tag : string ) => boolean // e.g. img, br, hr
13
- isNativeTag ?: ( tag : string ) => boolean // e.g. loading-indicator in weex
14
- isPreTag ?: ( tag : string ) => boolean // e.g. <pre> where whitespace is intact
15
- isCustomElement ?: ( tag : string ) => boolean
12
+ // e.g. platform native elements, e.g. <div> for browsers
13
+ isNativeTag ?: ( tag : string ) => boolean
14
+ // e.g. native elements that can self-close, e.g. <img>, <br>, <hr>
15
+ isVoidTag ?: ( tag : string ) => boolean
16
+ // e.g. elements that should preserve whitespace inside, e.g. <pre>
17
+ isPreTag ?: ( tag : string ) => boolean
18
+ // platform-specific built-in components e.g. <Transition>
16
19
isBuiltInComponent ?: ( tag : string ) => symbol | void
20
+ // separate option for end users to extend the native elements list
21
+ isCustomElement ?: ( tag : string ) => boolean
17
22
getNamespace ?: ( tag : string , parent : ElementNode | undefined ) => Namespace
18
23
getTextMode ?: (
19
24
tag : string ,
You can’t perform that action at this time.
0 commit comments