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

Method applyFactoryResultDependencies

lib/Compilation.js:2349–2361  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2347 },
2348 (err, factoryResult) => {
2349 const applyFactoryResultDependencies = () => {
2350 const { fileDependencies, contextDependencies, missingDependencies } =
2351 /** @type {ModuleFactoryResult} */ (factoryResult);
2352 if (fileDependencies) {
2353 this.fileDependencies.addAll(fileDependencies);
2354 }
2355 if (contextDependencies) {
2356 this.contextDependencies.addAll(contextDependencies);
2357 }
2358 if (missingDependencies) {
2359 this.missingDependencies.addAll(missingDependencies);
2360 }
2361 };
2362 if (err) {
2363 if (factoryResult) applyFactoryResultDependencies();
2364 if (dependencies.every((d) => d.optional)) {

Callers

nothing calls this directly

Calls 1

addAllMethod · 0.45

Tested by

no test coverage detected