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 b971467 commit a68efafCopy full SHA for a68efaf
packages/vite/src/node/plugins/wasm.ts
@@ -26,7 +26,11 @@ const wasmHelper = async (opts = {}, url: string) => {
26
}
27
result = await WebAssembly.instantiate(bytes, opts)
28
} else {
29
- if (typeof process !== 'undefined' && process.versions?.node) {
+ if (
30
+ typeof process !== 'undefined' &&
31
+ process.versions &&
32
+ process.versions.node
33
+ ) {
34
const fs = await import('node:fs/promises')
35
if (url.startsWith('/@fs/')) {
36
url = url.slice(5)
0 commit comments