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 2a9b355 commit b971467Copy full SHA for b971467
packages/vite/src/node/plugins/wasm.ts
@@ -30,6 +30,9 @@ const wasmHelper = async (opts = {}, url: string) => {
30
const fs = await import('node:fs/promises')
31
if (url.startsWith('/@fs/')) {
32
url = url.slice(5)
33
+ if (!/^[A-Z]:/i.test(url)) {
34
+ url = `/${url}`
35
+ }
36
} else if (url.startsWith('/')) {
37
url = url.slice(1)
38
}
0 commit comments