Skip to content

Commit

Permalink
chore(server): rename _watch to watchFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
knagaitsev committed Jul 23, 2020
1 parent 853f7ca commit f5597e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ class Server {
});

if (staticOption.watch) {
this._watch(staticOption.directory, staticOption.watch);
this.watchFiles(staticOption.directory, staticOption.watch);
}
});
}
Expand Down Expand Up @@ -807,7 +807,7 @@ class Server {
}
}

_watch(watchPath, watchOptions) {
watchFiles(watchPath, watchOptions) {
// duplicate the same massaging of options that watchpack performs
// https://github.com/webpack/watchpack/blob/master/lib/DirectoryWatcher.js#L49
// this isn't an elegant solution, but we'll improve it in the future
Expand Down

0 comments on commit f5597e4

Please sign in to comment.