You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
needsfs
? Can it be split in two so I can only loadparseWat
which (i suppose) should not depend onfs
?Thanks.
The text was updated successfully, but these errors were encountered: