WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/esm/ModuleChunkLoadingRuntimeModule.js
@@ -25,6 +25,7 @@
/** @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
@@ -35,6 +36,7 @@
class ModuleChunkLoadingRuntimeModule extends RuntimeModule {
   /**
    * Returns hooks.
    * @param {Compilation} compilation the compilation
    * @returns {JsonpCompilationPluginHooks} hooks
    */
@@ -56,14 +58,17 @@
   }
   /**
    * 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
@@ -84,6 +89,7 @@
   }
   /**
    * Generates runtime code for this runtime module.
    * @returns {string | null} runtime code
    */
   generate() {