From f5597e4c3aa328dd41ae9aad8735e0a68be087d4 Mon Sep 17 00:00:00 2001 From: Kirill Nagaitsev Date: Tue, 7 Jul 2020 09:53:30 -0500 Subject: [PATCH] chore(server): rename _watch to watchFiles --- lib/Server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Server.js b/lib/Server.js index c02552ba41..d741d0be1e 100644 --- a/lib/Server.js +++ b/lib/Server.js @@ -320,7 +320,7 @@ class Server { }); if (staticOption.watch) { - this._watch(staticOption.directory, staticOption.watch); + this.watchFiles(staticOption.directory, staticOption.watch); } }); } @@ -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