Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): ignore folders starting with a do…
Browse files Browse the repository at this point in the history
…t 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)
  • Loading branch information
romeomihalovics authored and alan-agius4 committed Jun 6, 2023
1 parent 9817b98 commit ce95d25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +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 ce95d25

Please sign in to comment.