How to use the @parcel/watcher.subscribe function in @parcel/watcher

To help you get started, we’ve selected a few @parcel/watcher examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github parcel-bundler / parcel / packages / core / fs / src / NodeFS.js View on Github external
watch(
    dir: FilePath,
    fn: (err: ?Error, events: Array) => mixed,
    opts: WatcherOptions,
  ): Promise {
    return watcher.subscribe(dir, fn, opts);
  }

@parcel/watcher

A native C++ Node module for querying and subscribing to filesystem events. Used by Parcel 2.

MIT
Latest version published 7 months ago

Package Health Score

80 / 100
Full package analysis

Similar packages