You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(cache): simplify creating / using the cache var (#415)
- as everything is created in the `buildStart` hook now (which has `RollupContext`), we can create the `cache` there too
- no need for slightly hacky, lazy creation during `transform` anymore
- simplifies it and also standardizes it so it's created the same way as all the other instance vars
- fix: reset `cache` after each watch cycle
- previously the cache was never reset, meaning that if anything became dirty in a watch cycle, it would never get reset back
- in some cases, this would mean that the cache was effectively always dirty during an entire watch mode run, and therefore never used
- this would be quite inefficient as the FS usage for the cache would just go to waste
- see that test coverage has now increased as a result!
0 commit comments