From 6df0ca112e41cb1ed0ee76a446fa7e5f358dfaeb Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY <974153916@qq.com> Date: Sun, 19 Nov 2023 09:25:27 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20align=20wasi=20template?= =?UTF-8?q?=20to=20nodejs=20demo=20(#1814)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cli/src/api/load-wasi-template.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/src/api/load-wasi-template.ts b/cli/src/api/load-wasi-template.ts index e7239fdb..32958348 100644 --- a/cli/src/api/load-wasi-template.ts +++ b/cli/src/api/load-wasi-template.ts @@ -16,6 +16,7 @@ import { instantiateNapiModule as __emnapiInstantiateNapiModule } from '@emnapi/ import { getDefaultContext as __emnapiGetDefaultContext } from '@emnapi/runtime' const __wasi = new __nodeWASI({ + version: 'preview1', env: process.env, preopens: { '/': __nodePath.join(__nodeURL.fileURLToPath(import.meta.url), '..'),