Skip to content

Support init function without parameters #1559

Closed
@ibaryshnikov

Description

@ibaryshnikov

Motivation

When used without a bundler, there is a need to call init with a .wasm file name:

await init('../pkg/my_project_bg.wasm');

and again

await init('../pkg/another_project_bg.wasm');

Proposed Solution

Make it possible to use

await init();

which will default to path with generated .wasm file

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions