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

Method build

lib/container/FallbackModule.js:112–124  ·  view source on GitHub ↗

* Builds the module using the provided compilation context. * @param {WebpackOptions} options webpack options * @param {Compilation} compilation the compilation * @param {ResolverWithOptions} resolver the resolver * @param {InputFileSystem} fs the file system * @param {BuildCallback} callb

(options, compilation, resolver, fs, callback)

Source from the content-addressed store, hash-verified

110 * @returns {void}
111 */
112 build(options, compilation, resolver, fs, callback) {
113 this.buildMeta = {};
114 this.buildInfo = {
115 strict: true
116 };
117
118 this.clearDependenciesAndBlocks();
119 for (const request of this.requests) {
120 this.addDependency(new FallbackItemDependency(request));
121 }
122
123 callback();
124 }
125
126 /**
127 * Returns the estimated size for the requested source type.

Callers

nothing calls this directly

Calls 3

addDependencyMethod · 0.65
callbackFunction · 0.50

Tested by

no test coverage detected