Skip to content

Commit 9d551fa

Browse files
authored
Merge branch 'master' into enhance-tar-corruption-debugging
2 parents 2cbb185 + c8eea20 commit 9d551fa

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

scopes/ui-foundation/ui/webpack/webpack.dev.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,11 @@ export function devConfig(workspaceDir, entryFiles, title): WebpackConfigWithDev
107107
// Can be:
108108
// serveIndex: {} (options for the `serveIndex` option you can find https://github.com/expressjs/serve-index)
109109
serveIndex: true,
110-
// Can be:
111-
// watch: {} (options for the `watch` option you can find https://github.com/paulmillr/chokidar)
112-
watch: true,
110+
// Disabled: The static public directory typically doesn't exist, and when Chokidar
111+
// watches a non-existent path, it recursively watches parent directories until it
112+
// finds one that exists - potentially watching the entire workspace root.
113+
// This causes unnecessary file system events and wastes FSEvents streams on macOS.
114+
watch: false,
113115
},
114116
],
115117

scopes/webpack/webpack/config/webpack.dev.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ export function configFactory(
8787
// Can be:
8888
// serveIndex: {} (options for the `serveIndex` option you can find https://github.com/expressjs/serve-index)
8989
serveIndex: true,
90-
// Can be:
91-
// watch: {} (options for the `watch` option you can find https://github.com/paulmillr/chokidar)
92-
watch: true,
90+
// Disabled: The static public directory typically doesn't exist, and when Chokidar
91+
// watches a non-existent path, it recursively watches parent directories until it
92+
// finds one that exists - potentially watching the entire workspace root.
93+
// This causes unnecessary file system events and wastes FSEvents streams on macOS.
94+
watch: false,
9395
},
9496
],
9597

0 commit comments

Comments
 (0)