Appearance
@luminaphoto/lumina-js / Core / configureWasm
Function: configureWasm()
ts
function configureWasm(options): void;Configure WASM module loading before initialization.
Call this before any WASM-dependent API (e.g. Core.Editor, Licensing.createDependentKey) to override how the .wasm file is located. This is necessary in bundled environments where import.meta.url does not resolve to the WASM file directory.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | { locateFile: (path, prefix) => string; } | - |
options.locateFile | (path, prefix) => string | Custom Emscripten locateFile callback |
Returns
void
Throws
Error if the WASM module has already been loaded