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

Function writeFile

test/Compiler.test.js:63–71  ·  test/Compiler.test.js::writeFile
(
					/** @type {string} */ name,
					/** @type {Buffer} */ content,
					/** @type {() => void} */ callback
				)

Source from the content-addressed store, hash-verified

61 callback(err);
62 },
63 writeFile(
64 /** @type {string} */ name,
65 /** @type {Buffer} */ content,
66 /** @type {() => void} */ callback
67 ) {
68 logs.writeFile.push(name, content);
69 files[name] = content.toString(class="st">"utf8");
70 callback();
71 },
72 stat(
73 /** @type {string} */ _path,
74 /** @type {(err: Error) => void} */ callback

Callers

nothing calls this directly

Calls 3

callbackFunction · 0.70
pushMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected