Skip to main content

INLINE_JS_PLACEHOLDER

Constant INLINE_JS_PLACEHOLDER 

Source
pub const INLINE_JS_PLACEHOLDER: &str = "__EUV_INLINE_JS__";
Expand description

Placeholder token used in HTML templates for the inlined wasm-bindgen JS bridge.

Replaced at runtime with the body of pkg/<name>.js (with its top-level import statements stripped and the 2 snippet helper functions inlined), wrapped in a synchronous IIFE that fetches the wasm module and calls main(). This eliminates the separate HTTP request for the JS bridge file and skips ES module graph parsing on the critical path.