@rolldown/binding-wasm32-wasi
Advanced tools
Comparing version 0.10.2-snapshot-7a8380b-20240421002831 to 0.10.2-snapshot-7c3ab2f-20240522102338
{ | ||
"name": "@rolldown/binding-wasm32-wasi", | ||
"version": "0.10.2-snapshot-7a8380b-20240421002831", | ||
"version": "0.10.2-snapshot-7c3ab2f-20240522102338", | ||
"cpu": [ | ||
@@ -5,0 +5,0 @@ "wasm32" |
# `@rolldown/binding-wasm32-wasi` | ||
This is the **wasm32-wasi-preview1-threads** binary for `@rolldown/binding` | ||
This is the **wasm32-wasip1-threads** binary for `@rolldown/binding` |
@@ -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
3617243