Skip to content

Conversation

@ThierryBerger
Copy link

@ThierryBerger ThierryBerger commented Aug 28, 2025

Using this template for browser/webassembly is challenging due to this option being enabled: symbols leads to a freeze (firefox popOS).

I was able to track down the origin by comparing it to the working example of https://github.com/napi-rs/napi-rs/tree/main/examples/napi.

It may be desirable to downgrade it only when building for web assembly, but in the meantime this strictly leads to a better default for webassembly curious, which I imagine latest blog post https://napi.rs/blog/announce-v3 may bring.

@ThierryBerger
Copy link
Author

ThierryBerger commented Sep 3, 2025

I was able to fix it differently by adding package-template.wasm32-wasi.wasm to the package.json files, which is better since it results in a slightly smaller wasm (I observed 86kB vs 95kB)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant