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

(cherry picked from commit 772fe84)
  • Loading branch information
romeomihalovics authored and alan-agius4 committed Jun 6, 2023
1 parent 52d0fc1 commit 9817b98
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,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 9817b98

Please sign in to comment.