Improved semantics when returning from switchMap

This commit is contained in:
squidfunk
2022-03-08 10:31:38 +01:00
parent eea6d1eec4
commit 1d1cf476c8
11 changed files with 18 additions and 20 deletions

View File

@@ -108,7 +108,7 @@ export function resolve(
return from(glob(pattern, options))
.pipe(
catchError(() => EMPTY),
switchMap(files => from(files)),
switchMap(files => files),
options?.watch
? mergeWith(watch(pattern, options))
: identity