Skip to content

Commit

Permalink
perf: ignore watching files in node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Nov 26, 2024
1 parent 1a5e2c2 commit fa4706e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/core/src/plugins/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fa4706e

Please sign in to comment.