Skip to content

Commit

Permalink
fix(core): do not watch temporary vite files
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Feb 2, 2024
1 parent 05b0848 commit e3b037d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/nx/src/native/watch/watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ impl Watcher {
use_ignore: Option<bool>,
) -> Watcher {
// always have these globs come before the additional globs
let mut globs = vec![".git/".into(), "node_modules/".into(), ".nx/".into()];
let mut globs = vec![
".git/".into(),
"node_modules/".into(),
".nx/".into(),
"vitest.config.ts.timestamp*.mjs".into(),
"vite.config.ts.timestamp*.mjs".into(),
];
if let Some(additional_globs) = additional_globs {
globs.extend(additional_globs);
}
Expand Down

0 comments on commit e3b037d

Please sign in to comment.