MCPcopy
hub / github.com/webpack/webpack / create

Method create

lib/optimize/ConcatenatedModule.js:831–852  ·  view source on GitHub ↗

* @param {Module} rootModule the root module of the concatenation * @param {Set<Module>} modules all modules in the concatenation (including the root module) * @param {RuntimeSpec} runtime the runtime * @param {Compilation} compilation the compilation * @param {AssociatedObjectForCache=} ass

(
		rootModule,
		modules,
		runtime,
		compilation,
		associatedObjectForCache,
		hashFunction = DEFAULTS.HASH_FUNCTION
	)

Source from the content-addressed store, hash-verified

829 * @returns {ConcatenatedModule} the module
830 */
831 static create(
832 rootModule,
833 modules,
834 runtime,
835 compilation,
836 associatedObjectForCache,
837 hashFunction = DEFAULTS.HASH_FUNCTION
838 ) {
839 const identifier = ConcatenatedModule._createIdentifier(
840 rootModule,
841 modules,
842 associatedObjectForCache,
843 hashFunction
844 );
845 return new ConcatenatedModule({
846 identifier,
847 rootModule,
848 modules,
849 runtime,
850 compilation
851 });
852 }
853
854 /**
855 * @param {object} options options

Callers 5

applyMethod · 0.45
buildMethod · 0.45
mapObjectFunction · 0.45
applyMethod · 0.45
getSizeMethod · 0.45

Calls 1

_createIdentifierMethod · 0.45

Tested by

no test coverage detected