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

Function writeFile

test/Errors.test.js:123–129  ·  view source on GitHub ↗
(
			/** @type {string} */ file,
			/** @type {string | Buffer} */ content,
			/** @type {(err?: Error | null) => void} */ callback
		)

Source from the content-addressed store, hash-verified

121 callback();
122 },
123 writeFile(
124 /** @type {string} */ file,
125 /** @type {string | Buffer} */ content,
126 /** @type {(err?: Error | null) => void} */ callback
127 ) {
128 callback();
129 },
130 stat(
131 /** @type {string} */ file,
132 /** @type {(err: Error | null, stats?: import("fs").Stats) => void} */ callback

Callers 6

updateSrcFunction · 0.70
registerSuiteFunction · 0.70
beforeAllFunction · 0.70
afterAllFunction · 0.70
_emitRecordsMethod · 0.50
serializeFunction · 0.50

Calls 1

callbackFunction · 0.70

Tested by

no test coverage detected