-
-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance for
after-compile
plugin. (#187)
* Improve performance for `after-compile` plugin. This fix makes optimization into `after-compile` plugin, which increases performance of watch mode. Instead of iterate over all files in instance, iterate only over modified files. * Make `modifiedFiles` optional * Push file into `modifiedFiles` on each loader call, proper handle dependencies between files. * Change `=== null` check into boolean cast * Add a missed clear for `modifiedFiles` * Do not hide files with errors on rebuilds caused by modified other files. * Implemented reverseDependencyGraph to get list of files, which are possible affected by changes * On initial build check all files for errors. On each watch-run put affected file to `instance.modifiedFiles` This commit fix issue, when errors in declaration files swallowed by the loader.
- Loading branch information
1 parent
3f5f19e
commit 8b62b3d
Showing
1 changed file
with
83 additions
and
12 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