@rolldown/binding-wasm32-wasi
Advanced tools
Comparing version 0.10.2-snapshot-8290328-20240422002919 to 0.10.2-snapshot-84dc419-20240427002540
{ | ||
"name": "@rolldown/binding-wasm32-wasi", | ||
"version": "0.10.2-snapshot-8290328-20240422002919", | ||
"version": "0.10.2-snapshot-84dc419-20240427002540", | ||
"cpu": [ | ||
@@ -5,0 +5,0 @@ "wasm32" |
@@ -5,2 +5,3 @@ import { | ||
WASI as __WASI, | ||
createOnMessage as __wasmCreateOnMessageForFsProxy, | ||
} from '@napi-rs/wasm-runtime' | ||
@@ -39,5 +40,9 @@ import { memfs } from '@napi-rs/wasm-runtime/fs' | ||
onCreateWorker() { | ||
return new Worker(new URL('@rolldown/binding-wasm32-wasi/wasi-worker-browser.mjs', import.meta.url), { | ||
const worker = new Worker(new URL('@rolldown/binding-wasm32-wasi/wasi-worker-browser.mjs', import.meta.url), { | ||
type: 'module', | ||
}) | ||
worker.addEventListener('message', __wasmCreateOnMessageForFsProxy(__fs)) | ||
return worker | ||
}, | ||
@@ -44,0 +49,0 @@ overwriteImports(importObject) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
291
3959137