Skip to content

Commit

Permalink
watch node_modules (vercel#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 authored 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
Original file line number Diff line number Diff line change
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.