Skip to content

Commit f21ad40

Browse files
committed
Ignore emacs lockfiles
Fixes: #15278
1 parent 27bb24f commit f21ad40

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ test/**/next-env.d.ts
2525

2626
# Editors
2727
**/.idea
28+
**/#*
2829

2930
# examples
3031
examples/**/out

packages/next/build/webpack-config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,8 @@ export default async function getBaseWebpackConfig(
706706
callback()
707707
}
708708

709+
const emacsLockfilePattern = '**/.#*'
710+
709711
let webpackConfig: webpack.Configuration = {
710712
externals: !isServer
711713
? // make sure importing "next" is handled gracefully for client
@@ -782,7 +784,12 @@ export default async function getBaseWebpackConfig(
782784
}
783785
},
784786
watchOptions: {
785-
ignored: ['**/.git/**', '**/node_modules/**', '**/.next/**'],
787+
ignored: [
788+
'**/.git/**',
789+
'**/node_modules/**',
790+
'**/.next/**',
791+
emacsLockfilePattern,
792+
],
786793
},
787794
output: {
788795
...(isWebpack5

0 commit comments

Comments
 (0)