@@ -103,17 +103,43 @@ exports[`transform > vue2 transform with jsx should work 1`] = `
103
103
}
104
104
` ;
105
105
106
- exports [` transform > vue3 transform should work 1` ] = `
106
+ exports [` transform > vue3 transform should work > no-user-resolve 1` ] = `
107
107
{
108
108
" code" : " /* unplugin-vue-components disabled */import __unplugin_directives_0 from 'test/directive/Loading';
109
109
import __unplugin_components_0 from ' test/component/TestComp' ;
110
110
111
111
const render = (_ctx , _cache ) => {
112
112
const _component_test_comp = __unplugin_components_0
113
113
const _directive_loading = __unplugin_directives_0
114
-
114
+
115
+ const _resolveNoUnderscore = resolveComponent (" test-comp" )
116
+
117
+ return _withDirectives (
118
+ (_openBlock (),
119
+ _createBlock (_resolveNoUnderscore , null , null , 512 /* NEED_PATCH */ )),
120
+ _createBlock (_component_test_comp , null , null , 512 /* NEED_PATCH */ )),
121
+ [[_directive_loading , 123 ]]
122
+ )
123
+ }
124
+ " ,
125
+ }
126
+ ` ;
127
+
128
+ exports [` transform > vue3 transform should work > with-user-resolve 1` ] = `
129
+ {
130
+ " code" : " /* unplugin-vue-components disabled */import __unplugin_directives_0 from 'test/directive/Loading';
131
+ import __unplugin_components_1 from ' test/component/TestComp' ;
132
+ import __unplugin_components_0 from ' test/component/TestComp' ;
133
+
134
+ const render = (_ctx , _cache ) => {
135
+ const _component_test_comp = __unplugin_components_0
136
+ const _directive_loading = __unplugin_directives_0
137
+
138
+ const _resolveNoUnderscore = __unplugin_components_1
139
+
115
140
return _withDirectives (
116
141
(_openBlock (),
142
+ _createBlock (_resolveNoUnderscore , null , null , 512 /* NEED_PATCH */ )),
117
143
_createBlock (_component_test_comp , null , null , 512 /* NEED_PATCH */ )),
118
144
[[_directive_loading , 123 ]]
119
145
)
0 commit comments