MCPcopy
hub / github.com/babel/babel-loader / write

Function write

src/cache.js:67–72  ·  view source on GitHub ↗
(filename, compress, result)

Source from the content-addressed store, hash-verified

65 * @param {any} result
66 */
67const write = async function (filename, compress, result) {
68 const content = JSON.stringify(result);
69
70 const data = compress ? await gzip(content) : content;
71 return await writeFile(filename + (compress ? ".gz" : ""), data);
72};
73
74/**
75 * Build the filename for the cached file

Callers 1

handleCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…