Skip to content

Support web workers #36

@danielcommesse

Description

@danielcommesse

Environment

macOS
Firefox & Chrome
node v22.1.0
npm 10.7.0
vite v5.3.3

Reproduction

Not available.

Describe the bug

I am using this library https://github.com/antelle/argon2-browser, and I managed to use it without troubles through unwasm, however I recently tried to load it within a web worker, and it doesn't work, basically, it loads the library as an object, but with functions as strings. I've tried a lot of things and can't get it to work within a web worker.

In the description of the package it is not clear how to use it within a web worker.

I am not sure if this is actually a bug.

Any help would be appreciated.

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions