-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cache): simplify creating / using the
cache
var
- 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!
- Loading branch information
Showing
1 changed file
with
9 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters