Skip to content

Commit 9817b98

Browse files
romeomihalovicsalan-agius4
authored andcommitted
fix(@angular-devkit/build-angular): ignore .git folder in browser-esbuild 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)
1 parent 52d0fc1 commit 9817b98

File tree

1 file changed

+1
-0
lines changed
  • packages/angular_devkit/build_angular/src/builders/browser-esbuild

1 file changed

+1
-0
lines changed

packages/angular_devkit/build_angular/src/builders/browser-esbuild/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ export async function* buildEsbuildBrowserInternal(
645645
// Ignore all node modules directories to avoid excessive file watchers.
646646
// Package changes are handled below by watching manifest and lock files.
647647
'**/node_modules/**',
648+
'**/.git/**',
648649
],
649650
});
650651

0 commit comments

Comments
 (0)