Skip to content

feat: inlined WASM for improved portability#243

Merged
nicklasl merged 3 commits intomainfrom
andreask/wasm-loading
Jan 22, 2026
Merged

feat: inlined WASM for improved portability#243
nicklasl merged 3 commits intomainfrom
andreask/wasm-loading

Conversation

@andreas-karlsson
Copy link
Copy Markdown
Contributor

Inline WASM by default for better portability
Default export now inlines WASM as a data URL which should work everywhere. If anyone for some reason want to avoid the increased bundle size there are two additional exports:

  • /node for Node.js (uses fs.readFile)
  • /fetch for modern standards compliant environments (uses fetch)
  • Both alternatives support custom paths via wasmPath/wasmUrl options

@nicklasl nicklasl merged commit 8d86283 into main Jan 22, 2026
10 checks passed
@nicklasl nicklasl deleted the andreask/wasm-loading branch January 22, 2026 09:52
@github-actions github-actions Bot mentioned this pull request Jan 21, 2026
@github-actions github-actions Bot mentioned this pull request Apr 29, 2026
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.

2 participants