WXL
4 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/webpack/lib/ChunkTemplate.js
@@ -20,6 +20,7 @@
/** @typedef {import("./ModuleTemplate")} ModuleTemplate */
/** @typedef {import("./javascript/JavascriptModulesPlugin").RenderContext} RenderContext */
/**
 * Defines the if set type used by this module.
 * @template T
 * @typedef {import("tapable").IfSet<T>} IfSet
 */
@@ -31,6 +32,7 @@
// TODO webpack 6 remove this class
class ChunkTemplate {
   /**
    * Creates an instance of ChunkTemplate.
    * @param {OutputOptions} outputOptions output options
    * @param {Compilation} compilation the compilation
    */
@@ -40,6 +42,7 @@
         renderManifest: {
            tap: util.deprecate(
               /**
                * Handles the callback logic for this hook.
                * @template AdditionalOptions
                * @param {string | Tap & IfSet<AdditionalOptions>} options options
                * @param {(renderManifestEntries: RenderManifestEntry[], renderManifestOptions: RenderManifestOptions) => RenderManifestEntry[]} fn function
@@ -60,6 +63,7 @@
         modules: {
            tap: util.deprecate(
               /**
                * Handles the callback logic for this hook.
                * @template AdditionalOptions
                * @param {string | Tap & IfSet<AdditionalOptions>} options options
                * @param {(source: Source, moduleTemplate: ModuleTemplate, renderContext: RenderContext) => Source} fn function
@@ -82,6 +86,7 @@
         render: {
            tap: util.deprecate(
               /**
                * Handles the callback logic for this hook.
                * @template AdditionalOptions
                * @param {string | Tap & IfSet<AdditionalOptions>} options options
                * @param {(source: Source, moduleTemplate: ModuleTemplate, renderContext: RenderContext) => Source} fn function
@@ -104,6 +109,7 @@
         renderWithEntry: {
            tap: util.deprecate(
               /**
                * Handles the callback logic for this hook.
                * @template AdditionalOptions
                * @param {string | Tap & IfSet<AdditionalOptions>} options options
                * @param {(source: Source, chunk: Chunk) => Source} fn function
@@ -130,6 +136,7 @@
         hash: {
            tap: util.deprecate(
               /**
                * Handles the callback logic for this hook.
                * @template AdditionalOptions
                * @param {string | Tap & IfSet<AdditionalOptions>} options options
                * @param {(hash: Hash) => void} fn function
@@ -144,6 +151,7 @@
         hashForChunk: {
            tap: util.deprecate(
               /**
                * Handles the callback logic for this hook.
                * @template AdditionalOptions
                * @param {string | Tap & IfSet<AdditionalOptions>} options options
                * @param {(hash: Hash, chunk: Chunk, chunkHashContext: ChunkHashContext) => void} fn function
@@ -167,6 +175,7 @@
Object.defineProperty(ChunkTemplate.prototype, "outputOptions", {
   get: util.deprecate(
      /**
       * Returns output options.
       * @this {ChunkTemplate}
       * @returns {OutputOptions} output options
       */