MCPcopy
hub / github.com/webpack/webpack / writeFile

Function writeFile

test/Compiler-caching.test.js:77–81  ·  test/Compiler-caching.test.js::writeFile

* @param {string} name file name * @param {Buffer} content file content * @param {() => void} cb callback

(name, content, cb)

Source from the content-addressed store, hash-verified

75 * @param {() => void} cb callback
76 */
77 writeFile(name, content, cb) {
78 logs.writeFile.push(name, content);
79 files[name] = content.toString(class="st">"utf8");
80 cb();
81 },
82 /**
83 * @param {string} _filePath file path
84 * @param {(err: Error) => void} cb callback

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected