Skip to main content

patch_wasm_host_glue

Function patch_wasm_host_glue 

Source
pub fn patch_wasm_host_glue(raw_no_modules_js: &str) -> (String, String)
Expand description

Patches wasm-bindgen --target no-modules JS glue with TextDecoder/TextEncoder and vendor WASM polyfills.

§Arguments

  • &str - Raw euv_example.js text emitted by wasm-bindgen --target no-modules.

§Returns

  • (String, String) - Pair of (cjs_glue, esm_glue) strings ready for MiniApp, QuickApp, and Wearable hosts.