| | |
| | | /** @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 |
| | | */ |
| | |
| | | // TODO webpack 6 remove this class |
| | | class ChunkTemplate { |
| | | /** |
| | | * Creates an instance of ChunkTemplate. |
| | | * @param {OutputOptions} outputOptions output options |
| | | * @param {Compilation} compilation the compilation |
| | | */ |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | Object.defineProperty(ChunkTemplate.prototype, "outputOptions", { |
| | | get: util.deprecate( |
| | | /** |
| | | * Returns output options. |
| | | * @this {ChunkTemplate} |
| | | * @returns {OutputOptions} output options |
| | | */ |