Closed
Description
Docs
https://vuejs.org/guide/components/registration.html#local-registration
When using SFC with
<script setup>
, imported components are automatically registered locally:
If they are registered locally it should be possible to do <component is="comp" />
Plaground
Compiled JS
/* Analyzed bindings: {
"Comp": "setup-const"
} */
import { openBlock as _openBlock, createBlock as _createBlock } from "vue"
import Comp from './Comp.vue';
const __sfc__ = {
setup(__props) {
return (_ctx, _cache) => {
return (_openBlock(), _createBlock(Comp))
}
}
}
__sfc__.__file = "App.vue"
export default __sfc__