Home / Class/ NoopWatcher Class — vite Architecture

NoopWatcher Class — vite Architecture

Architecture documentation for the NoopWatcher class in watch.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  a7a708a5_b1c0_114f_6b28_1fd544c738b5["NoopWatcher"]
  b4c4dcfb_d52b_008a_a6fc_ed4f2bf1f714["watch.ts"]
  a7a708a5_b1c0_114f_6b28_1fd544c738b5 -->|defined in| b4c4dcfb_d52b_008a_a6fc_ed4f2bf1f714
  985bde1f_005b_4180_e51f_512e7312b9fe["constructor()"]
  a7a708a5_b1c0_114f_6b28_1fd544c738b5 -->|method| 985bde1f_005b_4180_e51f_512e7312b9fe
  19d4a1e3_7ff5_51ec_2223_486cb0f131a4["add()"]
  a7a708a5_b1c0_114f_6b28_1fd544c738b5 -->|method| 19d4a1e3_7ff5_51ec_2223_486cb0f131a4
  09f775c4_05d1_22eb_2fe4_0363b22a484c["unwatch()"]
  a7a708a5_b1c0_114f_6b28_1fd544c738b5 -->|method| 09f775c4_05d1_22eb_2fe4_0363b22a484c
  83f7e8a3_6092_976f_4d0d_8effb1e4d875["getWatched()"]
  a7a708a5_b1c0_114f_6b28_1fd544c738b5 -->|method| 83f7e8a3_6092_976f_4d0d_8effb1e4d875
  c2ee7173_3fe3_54b5_8f48_542c1a04026e["ref()"]
  a7a708a5_b1c0_114f_6b28_1fd544c738b5 -->|method| c2ee7173_3fe3_54b5_8f48_542c1a04026e
  df59b077_06d9_00e8_e4b5_52ccb55efda3["unref()"]
  a7a708a5_b1c0_114f_6b28_1fd544c738b5 -->|method| df59b077_06d9_00e8_e4b5_52ccb55efda3
  588e66be_7e6f_859a_bcf2_ecb0b6773d83["close()"]
  a7a708a5_b1c0_114f_6b28_1fd544c738b5 -->|method| 588e66be_7e6f_859a_bcf2_ecb0b6773d83

Relationship Graph

Source Code

packages/vite/src/node/watch.ts lines 91–119

class NoopWatcher extends EventEmitter implements FSWatcher {
  constructor(public options: WatchOptions) {
    super()
  }

  add() {
    return this
  }

  unwatch() {
    return this
  }

  getWatched() {
    return {}
  }

  ref() {
    return this
  }

  unref() {
    return this
  }

  async close() {
    // noop
  }
}

Domain

Frequently Asked Questions

What is the NoopWatcher class?
NoopWatcher is a class in the vite codebase, defined in packages/vite/src/node/watch.ts.
Where is NoopWatcher defined?
NoopWatcher is defined in packages/vite/src/node/watch.ts at line 91.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free