-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Turbopack] use file.read() instead of file.track() in webpack loaders (
#69659) ### What? `track()` invalidates based on watcher events and might have false invalidation when events occur but files do not actually change. This also happens when restoring from persistent caching where all files are considered as changed. `read()` invalidates only when the file content actually changed. Since webpack loaders are usually pretty expensive we want to use `read()` instead of `track()` here.
- Loading branch information
Showing
2 changed files
with
103 additions
and
43 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
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