Optional ReadonlywasmThe raw wasm module bytes, already in memory (e.g. read off disk in Node/Bun or pre-fetched). Highest precedence; skips any URL fetch.
Optional ReadonlywasmAbsolute (or document-relative) URL to fetch turbowebp_wasm_bg.wasm from —
the cross-origin / CDN pattern. Ignored when WasmHostInit.wasmBytes
is set.
Per-decoder override of where the vendored WebP
.wasmis loaded from. Both fields are optional; when neither is set the loader falls back to the SDK-globalwasmBaseUrl(seeconfiguredWasmUrl) and then to the build default. An explicit field here takes precedence over the global configuration.Remarks
This is the codec's slice of the SDK-wide wasm-host init contract, which is documented once on the core configuration (see
BitruviusConfig.wasmBaseUrl).wasmByteswins overwasmUrlwhen both are provided.