File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,7 @@ function _watch(ws, metadata) {
321321
322322 // Filter function to integrate with chokidar
323323 function isIgnored ( pathToFilter ) {
324+ pathToFilter = path . normalize ( pathToFilter ) ;
324325 if ( fullPathToWatch === pathToFilter ) {
325326 // if we are watching a file directly given file name, we don't run it though gitignore.
326327 // also we cant get relative path of gitignore with respect to a file as root.
Original file line number Diff line number Diff line change @@ -321,6 +321,7 @@ function _watch(ws, metadata) {
321321
322322 // Filter function to integrate with chokidar
323323 function isIgnored ( pathToFilter ) {
324+ pathToFilter = path . normalize ( pathToFilter ) ;
324325 if ( fullPathToWatch === pathToFilter ) {
325326 // if we are watching a file directly given file name, we don't run it though gitignore.
326327 // also we cant get relative path of gitignore with respect to a file as root.
You can’t perform that action at this time.
0 commit comments