1// Important: This file must be loaded as <script type="module"> 2import manifest from './manifest.8fd4249f.json' with { type: 'json' }; 3 4(() => { 5 // Get the URL of the directory containing this script. 6 // This makes all subsequent paths relative and portable. 7 const baseUrl = new URL('.', import.meta.url).href; 8 9 try { 10 const entry = manifest['src/main.ts']; 11 12 if (entry) { 13 // 1. Inject the CSS file(s) 14 if (entry.css && entry.css.length > 0) { 15 entry.css.forEach(cssFile => { 16 const link = document.createElement('link'); 17 link.rel = 'stylesheet'; 18 link.href = `${baseUrl}${cssFile}`; 19 document.head.appendChild(link); 20 }); 21 } 22 23 // 2. Inject the main JavaScript file 24 const script = document.createElement('script'); 25 script.type = 'module'; 26 script.src = `${baseUrl}${entry.file}`; 27 document.body.appendChild(script); 28 29 } else { 30 console.error('Entry point "src/main.ts" not found in manifest.'); 31 } 32 } catch (error) { 33 console.error('Failed to load Vue app:', error); 34 } 35})();
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.