Skip to content

Commit

Permalink
build(bindgen): specify env for wasi
Browse files Browse the repository at this point in the history
To address:

  TypeError: WebAssembly.instantiate(): Import #20 module="env": module is not an object or function
  • Loading branch information
thewtex committed Jan 8, 2025
1 parent 1621a8c commit 22168c0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { readFile } from 'node:fs/promises'
import { WASI } from 'wasi'
import { argv, env } from 'node:process'

const wasi = new WASI({
version: 'preview1',
args: ['--interface-json'],
env,
env: process.env,
preopens: {}
})

Expand Down

0 comments on commit 22168c0

Please sign in to comment.