* @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 )
| 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 |