File tree 2 files changed +12
-2
lines changed
compiler-core/src/transforms
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,12 @@ export function resolveComponentType(
244
244
return builtIn
245
245
}
246
246
247
- // 3. user component (resolve)
247
+ // 3. user component (from setup bindings)
248
+ if ( context . bindingMetadata [ tag ] === 'setup' ) {
249
+ return `$setup[${ JSON . stringify ( tag ) } ]`
250
+ }
251
+
252
+ // 4. user component (resolve)
248
253
context . helper ( RESOLVE_COMPONENT )
249
254
context . components . add ( tag )
250
255
return toValidAssetId ( tag , `component` )
Original file line number Diff line number Diff line change @@ -10,7 +10,12 @@ export const compilerOptions: CompilerOptions = reactive({
10
10
hoistStatic : false ,
11
11
cacheHandlers : false ,
12
12
scopeId : null ,
13
- ssrCssVars : `{ color }`
13
+ ssrCssVars : `{ color }` ,
14
+ bindingMetadata : {
15
+ TestComponent : 'setup' ,
16
+ foo : 'setup' ,
17
+ bar : 'props'
18
+ }
14
19
} )
15
20
16
21
const App = {
You can’t perform that action at this time.
0 commit comments