MCPcopy
hub / github.com/vitejs/vite / convertToWatcherOptions

Function convertToWatcherOptions

packages/vite/src/node/watch.ts:81–90  ·  view source on GitHub ↗
(
  options: WatchOptions | undefined,
)

Source from the content-addressed store, hash-verified

79}
80
81export function convertToWatcherOptions(
82 options: WatchOptions | undefined,
83): WatcherOptions['watcher'] {
84 if (!options) return
85
86 return {
87 usePolling: options.usePolling,
88 pollInterval: options.interval,
89 }
90}
91
92class NoopWatcher extends EventEmitter implements FSWatcher {
93 constructor(public options: WatchOptions) {

Callers 1

buildEnvironmentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected