diff --git a/packages/core/src/plugins/basic.ts b/packages/core/src/plugins/basic.ts index 26bcf751d0..1338759883 100644 --- a/packages/core/src/plugins/basic.ts +++ b/packages/core/src/plugins/basic.ts @@ -50,6 +50,11 @@ export const pluginBasic = (): RsbuildPlugin => ({ }, }); + // Ignore watching files in node_modules to reduce memory usage and make startup faster + chain.watchOptions({ + ignored: /[\\/](?:\.git|node_modules)[\\/]/, + }); + // Disable performance hints, these logs are too complex chain.performance.hints(false);