Skip to content

Commit

Permalink
Add an hint about the regexp filter
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie committed Feb 22, 2019
1 parent f450a96 commit ca563f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ module.exports = (nextConfig = {}) => {
webpackDevMiddleware (config) {
// Replace /node_modules/ by the new exclude RegExp (including the modules
// that are going to be transpiled)
// https://github.com/zeit/next.js/blob/815f2e91386a0cd046c63cbec06e4666cff85971/packages/next/server/hot-reloader.js#L335
const ignored = config.watchOptions.ignored.filter(
regexp => !regexEqual(regexp, /[\\/]node_modules[\\/]/)
).concat(excludes);
Expand Down

0 comments on commit ca563f4

Please sign in to comment.