| | |
| | | |
| | | class RequireChunkLoadingRuntimeModule extends RuntimeModule { |
| | | /** |
| | | * Creates an instance of RequireChunkLoadingRuntimeModule. |
| | | * @param {ReadOnlyRuntimeRequirements} runtimeRequirements runtime requirements |
| | | */ |
| | | constructor(runtimeRequirements) { |
| | | super("require chunk loading", RuntimeModule.STAGE_ATTACH); |
| | | /** @type {ReadOnlyRuntimeRequirements} */ |
| | | this.runtimeRequirements = runtimeRequirements; |
| | | } |
| | | |
| | | /** |
| | | * Returns generated code. |
| | | * @private |
| | | * @param {Chunk} chunk chunk |
| | | * @param {string} rootOutputDir root output directory |
| | |
| | | } |
| | | |
| | | /** |
| | | * Generates runtime code for this runtime module. |
| | | * @returns {string | null} runtime code |
| | | */ |
| | | generate() { |