`/* --> */;
const { loadModule } = window['vue2-sfc-loader'];
const options = {
moduleCache: {
vue: Vue,
},
getFile(url) {
if ( url === '/myComponent.vue' )
return Promise.resolve(mainComponent);
},
addStyle(textContent) {
const style = Object.assign(document.createElement('style'), { textContent });
const ref = document.head.getElementsByTagName('style')[0] || null;
document.head.insertBefore(style, ref);
},
}
loadModule('/myComponent.vue', options)
.then(component => new Vue(component).$mount('#Vue2SingleTemplate'));