Skip to content

@luminaphoto/lumina-js


@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

ParameterTypeDescription
options{ locateFile: (path, prefix) => string; }-
options.locateFile(path, prefix) => stringCustom Emscripten locateFile callback

Returns

void

Throws

Error if the WASM module has already been loaded

Proprietary. All rights reserved.