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

Function webpack

test/fixtures/webpack-cli/mock-webpack.js:32–42  ·  test/fixtures/webpack-cli/mock-webpack.js::webpack
(options)

Source from the content-addressed store, hash-verified

30
31class="cm">// RegExp survives the JSON round-trip as a plain marker object.
32const webpack = (options) => {
33 fs.writeFileSync(
34 process.env.WEBPACK_CLI_TEST_CAPTURE,
35 JSON.stringify(options, (key, value) =>
36 value instanceof RegExp
37 ? { source: value.source, flags: value.flags }
38 : value
39 )
40 );
41 return { options };
42};
43
44class="cm">// build only calls getArguments(undefined); ignore it and describe our schema.
45webpack.cli = {

Callers 15

compileFunction · 0.50
buildBatchFunction · 0.50
createCompilerFunction · 0.50
WatchClose.test.jsFile · 0.50
runWebpackFunction · 0.50
runWatchFunction · 0.50
runCompilerFunction · 0.50
createCompilationFunction · 0.50

Calls

no outgoing calls

Tested by 15

compileFunction · 0.40
createCompilerFunction · 0.40
runCompilerFunction · 0.40
createTestCaseFunction · 0.40
createCompilerFunction · 0.40
compileFunction · 0.40
compileFunction · 0.40
createCompilerFunction · 0.40
createStatsFunction · 0.40
compileFunction · 0.40
createMultiCompilerFunction · 0.40
compileFunction · 0.40