`
}
};
/* --> */
const options = {
moduleCache: { vue: Vue },
getFile: url => config.files[url] ?? (() => { throw new Error('404') })(),
addStyle: (textContent) => {
const style = Object.assign(document.createElement('style'), { textContent });
const ref = document.head.getElementsByTagName('style')[0] || null;
document.head.insertBefore(style, ref);
},
}
console.log( 'version', window['vue2-sfc-loader'].version );
console.log( 'vueVersion', window['vue2-sfc-loader'].vueVersion );
/*
const asyncComponentFactory = window['vue2-sfc-loader'].loadModule('/app.vue', options)
asyncComponentFactory.then((component) => {
new Vue(component).$mount('#app')
})
*/