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

Function writeEntry

tasks/bundle-html.js:89–93  ·  view source on GitHub ↗
({path, title, hasLoader, hasStyleSheet, hasCompatibilityCheck}, {debug, platform})

Source from the content-addressed store, hash-verified

87];
88
89async function writeEntry({path, title, hasLoader, hasStyleSheet, hasCompatibilityCheck}, {debug, platform}) {
90 const destDir = getDestDir({debug, platform});
91 const d = `${destDir}/${path}`;
92 await writeFile(d, html(platform, title, hasLoader, hasStyleSheet, hasCompatibilityCheck));
93}
94
95/**
96 * @param {HTMLEntry[]} htmlEntries

Callers 1

bundleHTMLFunction · 0.85

Calls 3

getDestDirFunction · 0.90
writeFileFunction · 0.90
htmlFunction · 0.85

Tested by

no test coverage detected