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

Method codeGen

lib/Compilation.js:5895–5911  ·  view source on GitHub ↗
(module, callback)

Source from the content-addressed store, hash-verified

5893 * @returns {void}
5894 */
5895 const codeGen = (module, callback) => {
5896 this._codeGenerationModule(
5897 module,
5898 runtime,
5899 [runtime],
5900 chunkGraph.getModuleHash(module, runtime),
5901 this.dependencyTemplates,
5902 chunkGraph,
5903 this.moduleGraph,
5904 runtimeTemplate,
5905 errors,
5906 codeGenerationResults,
5907 (err, _codeGenerated) => {
5908 callback(err);
5909 }
5910 );
5911 };
5912
5913 const reportErrors = () => {
5914 if (errors.length > 0) {

Callers

nothing calls this directly

Calls 3

_codeGenerationModuleMethod · 0.95
callbackFunction · 0.50
getModuleHashMethod · 0.45

Tested by

no test coverage detected