test: document multi-target alias watch-mode fallback (#395)#531
test: document multi-target alias watch-mode fallback (#395)#531alexander-akait merged 1 commit intomainfrom
Conversation
Issue #395 reports that deleting a file resolved through a multi-target AliasPlugin causes ENOENT until the dev server is restarted. Investigation shows AliasPlugin itself already falls back to the next target on the next resolve and correctly records the winning target in `fileDependencies` and untried higher-priority targets in `missingDependencies`; the stale path observed in practice comes from upstream caching (webpack module graph / loader caches) that must be invalidated by the consumer. Add regression tests that pin this behavior down for future changes and extend the AliasPlugin JSDoc with the watch-mode contract so consumers know what they need to invalidate. https://claude.ai/code/session_015JAmrjYqXwmjn6Wdc8KsD9
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #531 +/- ##
==========================================
- Coverage 96.75% 96.52% -0.23%
==========================================
Files 50 50
Lines 2589 2651 +62
Branches 788 808 +20
==========================================
+ Hits 2505 2559 +54
- Misses 69 77 +8
Partials 15 15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Issue #395 reports that deleting a file resolved through a multi-target
AliasPlugin causes ENOENT until the dev server is restarted. Investigation
shows AliasPlugin itself already falls back to the next target on the
next resolve and correctly records the winning target in
fileDependenciesand untried higher-priority targets inmissingDependencies; the stale path observed in practice comes fromupstream caching (webpack module graph / loader caches) that must be
invalidated by the consumer.
Add regression tests that pin this behavior down for future changes and
extend the AliasPlugin JSDoc with the watch-mode contract so consumers
know what they need to invalidate.
https://claude.ai/code/session_015JAmrjYqXwmjn6Wdc8KsD9