Skip to content

Commit a68efaf

Browse files
committed
trying
1 parent b971467 commit a68efaf

File tree

1 file changed

+5
-1
lines changed
  • packages/vite/src/node/plugins

1 file changed

+5
-1
lines changed

packages/vite/src/node/plugins/wasm.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ const wasmHelper = async (opts = {}, url: string) => {
2626
}
2727
result = await WebAssembly.instantiate(bytes, opts)
2828
} else {
29-
if (typeof process !== 'undefined' && process.versions?.node) {
29+
if (
30+
typeof process !== 'undefined' &&
31+
process.versions &&
32+
process.versions.node
33+
) {
3034
const fs = await import('node:fs/promises')
3135
if (url.startsWith('/@fs/')) {
3236
url = url.slice(5)

0 commit comments

Comments
 (0)