Extremely fast file change detector and task orchestrator for Node.js.
I would like to access the Watcher object from the onChange handler in the watch configuration input. This way, a user can create public methods on their FileWatchingBackend to use in onChange. ## Desired Behavior Not sure how to reference the watcher with `WatcherConstructable` being a constructor. Maybe pass a reference in ChangeEvent ``` onChange: async ({ spawn, files, first, abortSignal, watcher }: ChangeEvent) => { ``` ## Motivation I would like to conditionally add and remove paths from my chokidar watch. ``` public add(path: string) { this.chokidar.add(path); } public unwatch(path: string) { this.chokidar.unwatch(path); } ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by Handfish and has received 1 comments.