MCPcopy
hub / github.com/webpack/webpack / createCompiler

Function createCompiler

test/ChangesAndRemovals.test.js:16–24  ·  test/ChangesAndRemovals.test.js::createCompiler
(config)

Source from the content-addressed store, hash-verified

14 * @returns {import(class="st">"../").Compiler} compiler
15 */
16const createCompiler = (config) => {
17 const webpack = require(class="st">"..");
18
19 const compiler = /** @type {import(class="st">"../").Compiler} */ (webpack(config));
20 compiler.outputFileSystem = /** @type {EXPECTED_ANY} */ (
21 createFsFromVolume(new Volume())
22 );
23 return compiler;
24};
25
26const tempFolderPath = path.join(__dirname, class="st">"ChangesAndRemovalsTemp");
27const tempFilePath = path.join(tempFolderPath, class="st">"temp-file.js");

Callers 1

createSingleCompilerFunction · 0.70

Calls 2

requireFunction · 0.70
webpackFunction · 0.50

Tested by

no test coverage detected