pub fn patch_runtime_snippets(js_path: &Path) -> Result<bool>Expand description
Apply the snippet-namespace patch to the runtime’s own JS, in place.
The nav feature’s inline_js glue makes wasm-bindgen emit
import * as importN from "./snippets/.../inlineK.js" inside islands_core.js
and pass that raw module namespace to WebAssembly.instantiate — the same V8
rejection patch_page_js dodges. This wraps each such importObject value;
the key (snippet specifier) is left untouched so it keeps matching the WASM’s
baked import-module name (snippets are excluded from the content-hashing pass
for the same reason). Returns Ok(true) if anything was wrapped.