chore: 🤖 align wasi template to nodejs demo (#1814)

This commit is contained in:
IWANABETHATGUY 2023-11-19 09:25:27 +08:00 committed by GitHub
parent c321071c89
commit 6df0ca112e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,7 @@ import { instantiateNapiModule as __emnapiInstantiateNapiModule } from '@emnapi/
import { getDefaultContext as __emnapiGetDefaultContext } from '@emnapi/runtime' import { getDefaultContext as __emnapiGetDefaultContext } from '@emnapi/runtime'
const __wasi = new __nodeWASI({ const __wasi = new __nodeWASI({
version: 'preview1',
env: process.env, env: process.env,
preopens: { preopens: {
'/': __nodePath.join(__nodeURL.fileURLToPath(import.meta.url), '..'), '/': __nodePath.join(__nodeURL.fileURLToPath(import.meta.url), '..'),