diff --git a/webpack.config.ts b/webpack.config.ts index 88190c2..1a20e87 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -76,6 +76,13 @@ export const baseConfig: Configuration = { plugins: [...basePlugins], + watchOptions: { + // for some systems, watching many files can result in a lot of CPU or memory usage + // https://webpack.js.org/configuration/watch/#watchoptionsignored + // don't use this pattern, if you have a monorepo with linked packages + ignored: /node_modules/, + }, + optimization: { splitChunks: { chunks: "async",