[PR #4644] nix: bundle js dist with bun and patch tree-sitter wasm paths #11053

Closed
opened 2026-02-16 18:15:50 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4644

State: closed
Merged: Yes


  • nix now bundles a bun runtime javascript dist instead of a compiled binary.
  • copies over node_modules/.bun and local packages, and wrap execution with bun.
  • add bundle/patch scripts to include the parser worker and rewrite tree-sitter wasm paths.
  • update canonicalize-node-modules to skip missing targets.

This should hopefully fix #4575. Credit to @Mic92 for suggesting/providing the js bundle solution.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4644 **State:** closed **Merged:** Yes --- - nix now bundles a bun runtime javascript dist instead of a compiled binary. - copies over node_modules/.bun and local packages, and wrap execution with bun. - add bundle/patch scripts to include the parser worker and rewrite tree-sitter wasm paths. - update canonicalize-node-modules to skip missing targets. This should hopefully fix #4575. Credit to @Mic92 for suggesting/providing the js bundle solution.
yindo added the pull-request label 2026-02-16 18:15:50 -05:00
yindo closed this issue 2026-02-16 18:15:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11053