feat(webpack): allow watching node_modules (#9781)

This commit is contained in:
Igor Randjelovic
2022-02-18 13:39:28 +01:00
committed by GitHub
parent 61ff7e4762
commit 9c9c831ac0
4 changed files with 22 additions and 0 deletions

View File

@ -124,6 +124,13 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
],
});
// allow watching node_modules
config.when(env.watchNodeModules, (config) => {
config.set('snapshot', {
managedPaths: [],
});
});
// Set up Terser options
config.optimization.minimizer('TerserPlugin').use(TerserPlugin, [
{