From 292636d249a32b0478a8ce87cf4afaa3d5622bc8 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Tue, 8 Mar 2022 15:12:50 +0100 Subject: [PATCH] watch node_modules (#35140) next.js doesn't HMR when installing node_modules. This fixes it. ## Bug - [x] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` --- packages/next/build/webpack-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/build/webpack-config.ts b/packages/next/build/webpack-config.ts index b6326c8c4add..fba561465fd2 100644 --- a/packages/next/build/webpack-config.ts +++ b/packages/next/build/webpack-config.ts @@ -54,7 +54,7 @@ import { getMiddlewareSourceMapPlugins } from './webpack/plugins/middleware-sour const watchOptions = Object.freeze({ aggregateTimeout: 5, - ignored: ['**/.git/**', '**/node_modules/**', '**/.next/**'], + ignored: ['**/.git/**', '**/.next/**'], }) function getSupportedBrowsers(