| | |
| | | /** @typedef {import("../Module").ReadOnlyRuntimeRequirements} ReadOnlyRuntimeRequirements */ |
| | | |
| | | /** |
| | | * Defines the jsonp compilation plugin hooks type used by this module. |
| | | * @typedef {object} JsonpCompilationPluginHooks |
| | | * @property {SyncWaterfallHook<[string, Chunk]>} linkPreload |
| | | * @property {SyncWaterfallHook<[string, Chunk]>} linkPrefetch |
| | |
| | | |
| | | class ModuleChunkLoadingRuntimeModule extends RuntimeModule { |
| | | /** |
| | | * Returns hooks. |
| | | * @param {Compilation} compilation the compilation |
| | | * @returns {JsonpCompilationPluginHooks} hooks |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * Creates an instance of ModuleChunkLoadingRuntimeModule. |
| | | * @param {ReadOnlyRuntimeRequirements} runtimeRequirements runtime requirements |
| | | */ |
| | | constructor(runtimeRequirements) { |
| | | super("import 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() { |