I want to do:
const pagefind = await import('/pagefind/pagefind.js');
But that doesn't work, however, this works:
const pagefindScript = await fetch('/pagefind/pagefind.js').then(res => res.text());
const blob = new Blob([pagefindScript], { type: 'text/javascript' });
const url = URL.createObjectURL(blob);
const pagefind = await import(/* @vite-ignore */ url);
Is this hacky workaround the only way to make this work?