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

Function getWatchFiles

tasks/bundle-css.js:79–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 let currentWatchFiles;
78
79 const getWatchFiles = () => {
80 const watchFiles = new Set();
81 cssEntries.forEach((entry) => {
82 entry.watchFiles?.forEach((file) => watchFiles.add(file));
83 const entryFile = getEntryFile(entry);
84 if (!watchFiles.has(entryFile)) {
85 watchFiles.add(entryFile);
86 }
87 });
88 currentWatchFiles = Array.from(watchFiles);
89 return currentWatchFiles;
90 };
91
92 const bundleCSS = async ({platforms, debug}) => {
93 for (const entry of cssEntries) {

Callers 2

onChangeFunction · 0.85
createBundleCSSTaskFunction · 0.85

Calls 3

getEntryFileFunction · 0.85
addMethod · 0.80
hasMethod · 0.65

Tested by

no test coverage detected