Skip to content

feat: support WebContainers in CLI and WASI runtime#2

Merged
pi0 merged 1 commit intopithings:mainfrom
jonathanpv:codex/webcontainers-wasi-fallback
Apr 6, 2026
Merged

feat: support WebContainers in CLI and WASI runtime#2
pi0 merged 1 commit intopithings:mainfrom
jonathanpv:codex/webcontainers-wasi-fallback

Conversation

@jonathanpv
Copy link
Copy Markdown
Contributor

Fixes #1

This makes the CLI shim safer in browser-hosted Node environments like StackBlitz WebContainers by making enableCompileCache() best-effort, and falls back to the existing custom WASI shim when node:wasi is present but not usable.

Tested in StackBlitz WebContainers with the patched package:

  • programmatic ripgrep([...])
  • CLI shim via lib/rg.mjs

@pi0 pi0 changed the title Support WebContainers in CLI and WASI runtime feat: support WebContainers in CLI and WASI runtime Apr 6, 2026
@pi0 pi0 merged commit 90a648c into pithings:main Apr 6, 2026
4 checks passed
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.

WebContainers / StackBlitz crash in CLI shim due to enableCompileCache()

2 participants