We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1faef4a commit cca62baCopy full SHA for cca62ba
src/render.ts
@@ -58,7 +58,7 @@ ${
58
${JSON.stringify({imports: Object.fromEntries(Array.from(imports, ([name, href]) => [name, href]))}, null, 2)}
59
</script>
60
${Array.from(imports.values())
61
- .concat(parseResult.imports.map(({name}) => name).filter((name) => name.startsWith("./")))
+ .concat(parseResult.imports.filter(({name}) => name.startsWith("./")).map(({name}) => `/_file/${name.slice(2)}`))
62
.map((href) => `<link rel="modulepreload" href="${href}">`)
63
.join("\n")}
64
<script type="module">
0 commit comments