Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/canary' into i18n/domain-redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Dec 29, 2020
2 parents 3990850 + f2f9090 commit ab65feb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ test/**/next-env.d.ts

# Editors
**/.idea
**/.#*

# examples
examples/**/out
Expand Down
10 changes: 9 additions & 1 deletion packages/next/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,8 @@ export default async function getBaseWebpackConfig(
callback()
}

const emacsLockfilePattern = '**/.#*'

let webpackConfig: webpack.Configuration = {
externals: !isServer
? // make sure importing "next" is handled gracefully for client
Expand Down Expand Up @@ -788,7 +790,13 @@ export default async function getBaseWebpackConfig(
}
},
watchOptions: {
ignored: ['**/.git/**', '**/node_modules/**', '**/.next/**'],
ignored: [
'**/.git/**',
'**/node_modules/**',
'**/.next/**',
// can be removed after https://github.com/paulmillr/chokidar/issues/955 is released
emacsLockfilePattern,
],
},
output: {
...(isWebpack5
Expand Down

0 comments on commit ab65feb

Please sign in to comment.