Skip to content

Commit

Permalink
fix(watcher): forget assign value
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Jul 25, 2024
1 parent 282d364 commit 4550a34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/watcher/create-watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ function resolveChokidarOptions(
? config.compilation.persistentCache.cacheDir
: (cacheDir = path.resolve(config.root, cacheDir));
} else {
path.resolve(config.root, 'node_modules', '.farm', 'cache');
cacheDir = path.resolve(config.root, 'node_modules', '.farm', 'cache');
}

const options: WatchOptions = {
ignored: [
'**/.git/**',
'**/node_modules/**',
'**/test-results/**', // Playwright
glob.escapePath(cacheDir) + '/**',
glob.escapePath(
Expand Down

0 comments on commit 4550a34

Please sign in to comment.