Skip to content

Commit f5597e4

Browse files
committed
chore(server): rename _watch to watchFiles
1 parent 853f7ca commit f5597e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ class Server {
320320
});
321321

322322
if (staticOption.watch) {
323-
this._watch(staticOption.directory, staticOption.watch);
323+
this.watchFiles(staticOption.directory, staticOption.watch);
324324
}
325325
});
326326
}
@@ -807,7 +807,7 @@ class Server {
807807
}
808808
}
809809

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

0 commit comments

Comments
 (0)