return builtIn
}
- // 3. user component (resolve)
+ // 3. user component (from setup bindings)
+ if (context.bindingMetadata[tag] === 'setup') {
+ return `$setup[${JSON.stringify(tag)}]`
+ }
+
+ // 4. user component (resolve)
context.helper(RESOLVE_COMPONENT)
context.components.add(tag)
return toValidAssetId(tag, `component`)
hoistStatic: false,
cacheHandlers: false,
scopeId: null,
- ssrCssVars: `{ color }`
+ ssrCssVars: `{ color }`,
+ bindingMetadata: {
+ TestComponent: 'setup',
+ foo: 'setup',
+ bar: 'props'
+ }
})
const App = {