Skip to content

Commit 22168c0

Browse files
committed
build(bindgen): specify env for wasi
To address: TypeError: WebAssembly.instantiate(): Import #20 module="env": module is not an object or function
1 parent 1621a8c commit 22168c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/typescript/itk-wasm/src/bindgen/interface-json-node-wasi.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { readFile } from 'node:fs/promises'
22
import { WASI } from 'wasi'
3-
import { argv, env } from 'node:process'
43

54
const wasi = new WASI({
65
version: 'preview1',
76
args: ['--interface-json'],
8-
env,
7+
env: process.env,
98
preopens: {}
109
})
1110

0 commit comments

Comments
 (0)