Skip to content

Include WASM in npm package - #87

Merged
jonatanklosko merged 2 commits into
elixir-lang:mainfrom
yordis:yordis/include-wasm-in-npm-package
Mar 2, 2026
Merged

jonatanklosko merged 2 commits into
elixir-lang:mainfrom
yordis:yordis/include-wasm-in-npm-package

Conversation

@yordis

@yordis yordis commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add *.wasm to files so the pre-built WASM is included in the npm tarball
  • Add prepack script to build the WASM before publishing

Other tree-sitter grammars (Go, JS, TS) already ship pre-built WASM files, enabling web-tree-sitter users to load grammars via require.resolve without building from source.

Other tree-sitter grammars (Go, JS, TS) ship pre-built WASM files,
enabling web-tree-sitter users to load grammars without building
from source.

Signed-off-by: Yordis Prieto <[email protected]>
Comment thread package.json Resolved

@jonatanklosko jonatanklosko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, thanks :)

@jonatanklosko
jonatanklosko merged commit 0d26ef5 into elixir-lang:main Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants