Skip to content

Unable to Set Local .wasm File in Latest Version #557

@vsarangan

Description

@vsarangan

Summary:
In version 0.3.1, DotLottieWC allowed setting a custom WebAssembly file via the setWasmUrl export. In the latest version, this functionality is no longer available or documented, breaking local WASM usage and it is taking from cdn.

Steps to Reproduce:

  • In version 0.3.1, we were able to set the .wasm file locally as shown:
import { setWasmUrl } from './dotlottie-wc.js';
setWasmUrl('./js/dotlottie/dotlottie-player.wasm');
  • After upgrading to the latest version (e.g., @lottiefiles/dotlottie-wc@latest), the setWasmUrl export is missing:
    Latest version does NOT include setWasmUrl
    export { a as DotLottieWC } from './chunk-F5EFWER6.js';

Expected Behavior:
The setWasmUrl API should be retained or replaced with an alternative documented method to allow loading .wasm from a local path, especially for environments where CDN usage is restricted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedwc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions