[Bug]: js_run_devserver()
sandbox does not remove deleted files
#1870
Labels
bug
Something isn't working
js_run_devserver()
sandbox does not remove deleted files
#1870
What happened?
The sandbox created by
js_run_devserver()
does not remove files deleted while the dev server is running.Version
Development (host) and target OS/architectures:
Output of
bazel --version
:bazel 7.2.1
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:bazel_dep(name = "aspect_rules_js", version = "2.0.0-rc6")
bazel_dep(name = "rules_nodejs", version = "6.2.0")
bazel_dep(name = "aspect_rules_ts", version = "3.0.0-rc0")
Language(s) and/or frameworks involved: TypeScript, Vite
How to reproduce
See: https://github.com/walkerburgin/js-run-devserver-repro
Clone https://github.com/walkerburgin/js-run-devserver-repro
Run
pnpm dev
(oribazel run //apps/foo-app:dev
) and grab thejs_run_devserver
sandbox location:Inspect
/private/var/folders/dt/89md32m53r31bbz6kn64qbl00000gp/T/js_run_devserver-FMhRHv6XAoVP/_main/apps/foo-app/build/ts/
:Delete
SideEffect.tsx
and observe that ibazel rebuilds, butSideEffects.js
is not mentioned in the output:Re-inspect
/private/var/folders/dt/89md32m53r31bbz6kn64qbl00000gp/T/js_run_devserver-FMhRHv6XAoVP/_main/apps/foo-app/build/ts/
:Note that
SideEffects.js
is still present in the sandbox, and therefore still visible to Vite!Any other information?
No response
The text was updated successfully, but these errors were encountered: