Skip to content

Commit eb54820

Browse files
Nikola-3ngrujic
and
ngrujic
authored
directories ignored by watcher should be relative to the watch directory (#9703)
Co-authored-by: ngrujic <[email protected]>
1 parent a7b7e8a commit eb54820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/core/src/RequestTracker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1483,12 +1483,12 @@ export default class RequestTracker {
14831483
export function getWatcherOptions({
14841484
watchIgnore = [],
14851485
cacheDir,
1486-
projectRoot,
1486+
watchDir,
14871487
watchBackend,
14881488
}: ParcelOptions): WatcherOptions {
14891489
const vcsDirs = ['.git', '.hg'];
14901490
const uniqueDirs = [...new Set([...watchIgnore, ...vcsDirs, cacheDir])];
1491-
const ignore = uniqueDirs.map(dir => path.resolve(projectRoot, dir));
1491+
const ignore = uniqueDirs.map(dir => path.resolve(watchDir, dir));
14921492

14931493
return {ignore, backend: watchBackend};
14941494
}

0 commit comments

Comments
 (0)