Commit 64cbb2d 1 parent 180a6ca commit 64cbb2d Copy full SHA for 64cbb2d
File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export async function compileSFCTemplate(
77
77
78
78
babelTraverse ( ast , {
79
79
enter ( { node } ) {
80
- if ( node . type === 'JSXElement' ) {
80
+ if ( node . type === 'JSXElement' && ! EXCLUDE_TAG . includes ( s . slice ( node . openingElement . name . start , node . openingElement . name . end ) ) ) {
81
81
if ( node . openingElement . attributes . some ( attr => attr . type !== 'JSXSpreadAttribute' && attr . name . name === KEY_DATA ,
82
82
) )
83
83
return
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ export default defineComponent({
4
4
name : 'Welcome' ,
5
5
setup ( ) {
6
6
const text = 'Welcome to here 🚀 .'
7
- return ( ) => < p style = { { color : '#fcb80f' , cursor : 'pointer' } } > { text } </ p >
7
+ return ( ) => (
8
+ < p style = { { color : '#fcb80f' , cursor : 'pointer' } } >
9
+ { text }
10
+ < template v-if = { text } > { text } </ template >
11
+ </ p >
12
+ )
8
13
} ,
9
14
} )
You can’t perform that action at this time.
0 commit comments