1// VUE-SFC-LOADER.JS 2 3 4const VueSFCLoader = Object.freeze({ 5 _options: { 6 moduleCache: { 7 vue: Vue 8 }, 9 getFile(url) { 10 return fetch(url, {cache: 'no-cache'}).then(response => response.ok ? response.text() : Promise.reject(response)); 11 }, 12 addStyle(content) { 13 const style = document.createElement('style'); 14 style.textContent = content; 15 const ref = document.head.getElementsByTagName('style')[0] || null; 16 document.head.insertBefore(style, ref); 17 }, 18 log(type, ...args) { 19 console.log(type, ...args); 20 } 21 }, 22 load(url) { 23 const { loadModule, version } = window['vue3-sfc-loader']; 24 return Vue.defineAsyncComponent(() => loadModule(url, this._options)); 25 } 26});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.