Repository navigation
Commit 11fe0a5
committed
fix(@angular/build): watchers outside the workspace via parcel didn't work
The `dirKey` entry in `this.pendingSubscriptions` caused the following `if` to never be true, as `!this.isCoveredByExistingExternal(dirKey)` is always true as long as `dirKey` is in there. But at this point it isn't pending anymore, as we just `await`ed it the LoC prior.
This bug caused to always run the else with did `sub.unsubscribe()` with killed the just spawned watcher. The effect was, that a directory outside the workspace wasn't watched anymore.
E.g. this structure:
```
apps/my-angular-app
libs/my-angular-sdk
node_modules/@my/sdk => symlink to libs/my-angular-sdk
```
When you run `ng serve` in `apps/my-angular-app` (which has iports to `@my/sdk`) and did a change in `libs/my-angular-sdk`, then the watcher didn't rebuild (which it did before in 21.x)1 parent e023a8e commit 11fe0a5
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| 533 | + | |
| 534 | + | |
533 | 535 | | |
534 | 536 | | |
535 | 537 | | |
| |||
0 commit comments