vpx: watch reports for `vpx --watch`, and `vpx watch` on oxc-node's watcher
Mantenedores costumam responder em até 1 dia
@fengmk2 já está trabalhando nisso.
Desde 20/10/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Follow-up to #2936. vpx --watch is Node.js watch mode with the script loader. It restarts when an imported file changes, but not in two common cases, which tsx watch misses as well:
- A tsconfig edit, such as a new
pathsmapping. - A file an import is waiting for, created after the first run (
import "./later.js", thenlater.tsis added).
It also has none of tsx watch's options: include and exclude globs, clearing the screen, rerunning on Enter, a kill timeout, or polling for Docker, WSL, and network drives.
oxc-node added both pieces in oxc-project/oxc-node#861, which #2936 syncs (ce22828):
- Dependency reports. With
enable_watch_reporton, the binding records the tsconfig files it reads and the paths a failed resolve looked for.@oxc-node/core's loader sends them as{ "watch:import": [url] }over IPC, the message Node.js's own watcher already reads, sonode --watchrestarts on them. oxnode watch. A tsx-style watcher, about 2,500 lines of TypeScript on Node.js built-ins.
Plan
- Reports for
vpx --watch. Forwardenable_watch_reportandtake_watch_dependenciesinpackages/cli/binding/src/oxc_node.rs. Port the relay into vpx's loader: the preload reports on the in-thread path, and the off-thread hooks send through a channel to the main thread. It is on only whenWATCH_REPORT_DEPENDENCIESis set.vpx --watchthen restarts on tsconfig edits and created files, with no new process. - Signal ack. Port the child's side of
OXNODE_SIGNAL_ACKinto the preload, so the watcher does not deliver Ctrl+C twice when it runs in a pipe or the background. vpx watch. Run oxc-node's watcher, bundled from the vendored source, once oxc-project/oxc-node#871 gives it an entry that takes vpx's loader and name.- Both CLIs route
vpx watch <script>: the globalvpxexecs Node.js with the bundled watcher, and the local bin calls it in process. - Add docs and snapshots, and a
vp migraterule that rewritestsx watchtovpx watch.
- Both CLIs route
Notes
vpx watchcurrently runs the binary of the npm packagewatch. A subcommand changes that, as tsx and oxnode did.- The process count matches
vpx --watch, since Node.js watch mode also runs a watcher process above the script. - Step 1 does not depend on oxc-project/oxc-node#871 and can land first.
- Linguagem predominante
- Rust
- Estrelas
- 6.3k
- Forks
- 283
- Merge médio
- 1d 12h
- PRs com merge (30d)
- 235
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de voidzero-dev/vite-plus
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
voidzero-dev/vite-plus#3219 ·
Mantenedores costumam responder em até 1 dia
-
pending triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
voidzero-dev/vite-plus#2882 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
pending triage
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
voidzero-dev/vite-plus#3218 ·
Mantenedores costumam responder em até 1 dia
-
LSP loads vite.config.ts with the server's cwd as rootTalvez já em andamento @leaysgur assumiu hoje. Abertapending triage
voidzero-dev/vite-plus#3217 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
vp migrate doesn't flag esbuild-specific config (minify: "esbuild") — migrated project fails to build on Vite 8Talvez já em andamento @john-okeefe assumiu há 2 dias. Abertacontribution welcome
voidzero-dev/vite-plus#3176 · 1 reação · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de voidzero-dev/vite-plus
Issues semelhantes
-
checkpoint/verify/rebuild_indexes on a thread holding a WriteTransaction deadlock instead of INT-001Abertabug known-issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
project-minigraf/minigraf#734 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 4 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 1 dia
-
bug CLI documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
openai/codex#56630 · 3 comentários · 3 reações ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
DayuanJiang/PecoFence#139 ·
Mantenedores costumam responder em até 1 dia