Skip to content

Commit 43149bd

Browse files
nkzawatimneutkens
authored andcommitted
fix not to overwrite the ignored option on Windows (#824)
1 parent 0119149 commit 43149bd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

server/hot-reloader.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,14 @@ export default class HotReloader {
122122
this.prevChunkHashes = chunkHashes
123123
})
124124

125+
const ignored = [
126+
/(^|[/\\])\../, // .dotfiles
127+
/node_modules/
128+
]
125129
const windowsSettings = isWindowsBash() ? {
126130
lazy: false,
127131
watchOptions: {
132+
ignored,
128133
aggregateTimeout: 300,
129134
poll: true
130135
}
@@ -135,12 +140,7 @@ export default class HotReloader {
135140
noInfo: true,
136141
quiet: true,
137142
clientLogLevel: 'warning',
138-
watchOptions: {
139-
ignored: [
140-
/(^|[/\\])\../, // .dotfiles
141-
/node_modules/
142-
]
143-
},
143+
watchOptions: { ignored },
144144
...windowsSettings
145145
})
146146

0 commit comments

Comments
 (0)