Skip to content

Commit

Permalink
watch node_modules (#35140)
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
sokra committed Mar 8, 2022
1 parent 4c6c490 commit 292636d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/webpack-config.ts
Expand Up @@ -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(
Expand Down

0 comments on commit 292636d

Please sign in to comment.