configureLiteRtWebLoader function
Configure the LiteRT.js web auto-loader.
Call it once before the first LiteRtInterpreter.fromBytes(...) when you
need to self-host the LiteRT.js module/WASM files or disable auto-loading.
moduleUrl: ESM URL for the@litertjs/corebundle.wasmUrl: URL passed toLiteRt.loadLiteRt(...). Either a directory ending in/(lets LiteRT.js auto-detect SIMD/threaded) or a specific.jsfile.autoLoad: whenfalse, disables auto-injection. The host page is then responsible for loading the runtime and assigning it towindow.LiteRt.
Implementation
void configureLiteRtWebLoader({
String? moduleUrl,
String? wasmUrl,
bool? autoLoad,
}) {
if (moduleUrl != null) _liteRtModuleUrl = moduleUrl;
if (wasmUrl != null) _liteRtWasmUrl = wasmUrl;
if (autoLoad != null) _autoLoaderEnabled = autoLoad;
}