Open sirzdy opened 4 years ago
When there is a midline, the watch result is wrong.
var gulp = require(‘gulp'); gulp.task('watch', series(() => { watch([ 'src/**/*', ], { ignored: [ 'src/abc/**/*', ] }, () => { return gulp.src('src/**/*') .pipe(gulp.dest('es')); }).on('all', (stats, file) => { console.log(`File [${file}] ${stats}`); }) }));
src/abc-def/index.js should be watched
src/abc-def/index.js
src/abc-def/index.js is ignored
The primary cause is anymatch. see https://github.com/micromatch/anymatch/issues/35
We should update anymatch (the dependencies of glob-watcher) to the latest, then update glob-watcher (the dependencies of gulp) to the latest
Moved to the appropriate issue tracker.
@sttk can you take a look at this? I'm not sure if it is still a problem since we've updated dependencies. Perhaps you can add a test?
When there is a midline, the watch result is wrong.
Please give us a sample of your gulpfile
What were you expecting to happen?
src/abc-def/index.js
should be watchedWhat actually happened?
src/abc-def/index.js
is ignoredAdditional information
The primary cause is anymatch. see https://github.com/micromatch/anymatch/issues/35
We should update anymatch (the dependencies of glob-watcher) to the latest, then update glob-watcher (the dependencies of gulp) to the latest