* 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)
| 104 | * @returns {void} |
| 105 | */ |
| 106 | build(options, compilation, resolver, fs, callback) { |
| 107 | this.buildMeta = {}; |
| 108 | this.buildInfo = { |
| 109 | strict: true |
| 110 | }; |
| 111 | |
| 112 | this.clearDependenciesAndBlocks(); |
| 113 | const dep = new ProvideForSharedDependency(this._request); |
| 114 | if (this._eager) { |
| 115 | this.addDependency(dep); |
| 116 | } else { |
| 117 | const block = new AsyncDependenciesBlock({}); |
| 118 | block.addDependency(dep); |
| 119 | this.addBlock(block); |
| 120 | } |
| 121 | |
| 122 | callback(); |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Returns the estimated size for the requested source type. |
nothing calls this directly
no test coverage detected