Skip to content

Commit ce95d25

Browse files
romeomihalovicsalan-agius4
authored andcommitted
fix(@angular-devkit/build-angular): ignore folders starting with a dot 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 folders starting with a dot will be ignored in the watcher to avoid similar issues (cherry picked from commit 7155cbe)
1 parent 9817b98 commit ce95d25

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +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/**',
648+
'**/.*/**',
649649
],
650650
});
651651

0 commit comments

Comments
 (0)