Skip to content

Why use fs? #49

@hopeless-programmer-online

Description

I want to use wabt in my next.s project via npm package.
Obviously, fs doesn't exist in browser environment so the import fails when next.js tries to bundle the package.
Is there a workaround without including <script> directly into HTML?
If no, why wabt needs fs? Can it be split in two so I can only load parseWat which (i suppose) should not depend on fs?
Thanks.

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