Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): ignore .git folder in browser-esb…
Browse files Browse the repository at this point in the history
…uild watcher

When running the builder in watch mode, and fetching the git repo that the project is contained in, any changes in the .git folder trigger a rebuild. This is especially annoying when the IDE that you use periodically fetches the repository, and the FETCH_HEAD file triggers the rebuild every time. With this change the .git folder will be ignored in the watcher
  • Loading branch information
romeomihalovics authored and alan-agius4 committed Jun 6, 2023
1 parent e2954d2 commit 772fe84
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ export async function* buildEsbuildBrowserInternal(
// Ignore all node modules directories to avoid excessive file watchers.
// Package changes are handled below by watching manifest and lock files.
'**/node_modules/**',
'**/.git/**',
],
});

Expand Down

0 comments on commit 772fe84

Please sign in to comment.