Skip to content

TLA causes issues with bundling #117

@julienmalard

Description

@julienmalard

The top-level await await sodium.ready in @localfirst/crypto prevents this library from being bundled into cjs (even when dynamically imported) and thereby prevents it from being used in tools such as nexe, pkg or the newer node sea.

Would convering the crypto functions to async functions be a potential workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions