(argCode: string)
| 12 | * Logic: new URL(ARG, new URL("file:///...", import.meta.url).href).href |
| 13 | */ |
| 14 | const wrapStandard = (argCode: string) => { |
| 15 | const base = JSON.stringify(EXPECTED_BASE_FOR_RELATIVE); |
| 16 | return `new URL(${argCode}, new URL(${base}, import.meta.url).href).href`; |
| 17 | }; |
| 18 | |
| 19 | /** |
| 20 | * Helper 2: Root-Relative Wrapper (The Browser Fix) |