Thanks to visit codestin.com
Credit goes to rolldown.rs

Skip to content

Interface: WatcherFileWatcherOptions

Properties

compareContentsForPolling?

  • Type: boolean
  • Optional

Whether to compare file contents for poll-based watchers. When enabled, poll watchers will check file contents to determine if they actually changed.

This option is only used when usePolling is true.

Default

ts
false

pollInterval?

  • Type: number
  • Optional

Interval between each poll in milliseconds.

This option is only used when usePolling is true.

Default

ts
100

usePolling?

  • Type: boolean
  • Optional

Whether to use polling-based file watching instead of native OS events.

Polling is useful for environments where native FS events are unreliable, such as network mounts, Docker volumes, or WSL2.

Default

ts
false