MCPcopy Index your code
hub / github.com/darkreader/darkreader / watch

Method watch

tasks/task.js:45–60  ·  view source on GitHub ↗
(platforms)

Source from the content-addressed store, hash-verified

43 }
44
45 watch(platforms) {
46 if (!this._watchFiles || !this._onChange) {
47 return;
48 }
49
50 const watcher = watch({
51 files: typeof this._watchFiles === 'function' ?
52 this._watchFiles() :
53 this._watchFiles,
54 onChange: async (files) => {
55 await this._measureTime(
56 () => this._onChange(files, watcher, platforms)
57 );
58 },
59 });
60 }
61}
62
63/**

Callers

nothing calls this directly

Calls 2

_measureTimeMethod · 0.95
watchFunction · 0.70

Tested by

no test coverage detected