Can Rspack Cancel Ongoing Compilation on New File Changes (Watch Mode)? #13144
Unanswered
kelp-vishal
asked this question in
Q&A
Replies: 1 comment
-
|
Rspack doesn't support cancel ongoing compilation and it's no easy to support it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
We’re using Rspack in dev/watch mode for a large Angular + Nx + Module Federation project.
Rebuild time is ~30 seconds. If a rebuild (A) is in progress and we modify another file (B), Rspack finishes A first and then starts a new rebuild for B. So if we edit B halfway through A, total wait becomes ~45 seconds.
Is there any option in Rspack to:
Cancel an ongoing compilation when new file changes are detected, and
Immediately restart compilation using the latest state (A + B changes)?
Or is queued rebuild the intended and only behavior in watch mode?
We’re trying to improve dev-loop efficiency for large projects.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions