MCPcopy
hub / github.com/webpack/webpack / read

Function read

test/statsCases/define-plugin/webpack.config.js:11–15  ·  view source on GitHub ↗

* @param {string} path path * @returns {string} JSON content of a file

(path)

Source from the content-addressed store, hash-verified

9 * @returns {string} JSON content of a file
10 */
11function read(path) {
12 return JSON.stringify(
13 fs.readFileSync(join(__dirname, path), "utf8").replace(/\r\n?/g, "\n")
14 );
15}
16
17/** @type {import("../../../").Configuration[]} */
18module.exports = [

Callers 1

webpack.config.jsFile · 0.70

Calls 2

joinFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected