-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5edb687
commit ed173a0
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Cloudflare doesn't support URL, import.meta.url, and fs.readFileSync | ||
// https://github.com/cloudflare/workers-sdk/issues/7265#issuecomment-2480871605 | ||
|
||
let imports = {}; | ||
import * as import0 from "./pulsebeam_core_bg.js"; | ||
import wasmModule from "./pulsebeam_core_bg.wasm"; | ||
imports["./pulsebeam_core_bg.js"] = import0; | ||
|
||
const wasmInstance = await WebAssembly.instantiate(wasmModule, imports); | ||
const wasm = wasmInstance.exports; | ||
export const __wasm = wasm; | ||
|
||
imports["./pulsebeam_core_bg.js"].__wbg_set_wasm( | ||
wasm, | ||
wasmModule, | ||
); | ||
wasm.__wbindgen_start(); | ||
|
||
export * from "./pulsebeam_core_bg.js"; |