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

Method newCompilation

lib/Compiler.js:1371–1378  ·  view source on GitHub ↗

* Returns the created compilation. * @param {CompilationParams} params the compilation parameters * @returns {Compilation} the created compilation

(params)

Source from the content-addressed store, hash-verified

1369 * @returns {Compilation} the created compilation
1370 */
1371 newCompilation(params) {
1372 const compilation = this.createCompilation(params);
1373 compilation.name = this.name;
1374 compilation.records = this.records;
1375 this.hooks.thisCompilation.call(compilation, params);
1376 this.hooks.compilation.call(compilation, params);
1377 return compilation;
1378 }
1379
1380 createNormalModuleFactory() {
1381 this._cleanupLastNormalModuleFactory();

Callers 1

compileMethod · 0.95

Calls 2

createCompilationMethod · 0.95
callMethod · 0.45

Tested by

no test coverage detected