What problem does this feature solve?
It'd be useful to be able to use a full Vue instance when defining a custom element, i.e. to use plugins like Vue Router or Vuex within a custom element.
What does the proposed API look like?
defineCustomElement(createApp())