UNPKG

vue-styleguidist

Version:
11 lines 414 B
import { createApp, Vue2, isVue3 } from 'vue-inbrowser-compiler-utils'; import { registerGlobalComponents } from '../../utils/globalComponents'; export function getVueApp(component, el, enhancePreviewApp) { return isVue3 ? function () { var app = createApp(component); enhancePreviewApp(app); registerGlobalComponents(app); app.mount(el); return app; }() : new Vue2(component).$mount(el); }