| | |
| | | /** @typedef {import("./RuntimeTemplate")} RuntimeTemplate */ |
| | | |
| | | /** |
| | | * Defines the init fragment type used by this module. |
| | | * @template T |
| | | * @typedef {import("./InitFragment")<T>} InitFragment |
| | | */ |
| | | |
| | | /** |
| | | * Defines the dependency template context type used by this module. |
| | | * @typedef {object} DependencyTemplateContext |
| | | * @property {RuntimeTemplate} runtimeTemplate the runtime template |
| | | * @property {DependencyTemplates} dependencyTemplates the dependency templates |
| | |
| | | */ |
| | | |
| | | /** |
| | | * Defines the css dependency template context extras type used by this module. |
| | | * @typedef {object} CssDependencyTemplateContextExtras |
| | | * @property {CssData} cssData the css exports data |
| | | * @property {string} type the css exports data |
| | | */ |
| | | |
| | | /** |
| | | * Defines the css data type used by this module. |
| | | * @typedef {object} CssData |
| | | * @property {boolean} esModule whether export __esModule |
| | | * @property {Map<string, string>} exports the css exports |
| | |
| | | class DependencyTemplate { |
| | | /* istanbul ignore next */ |
| | | /** |
| | | * Applies the plugin by registering its hooks on the compiler. |
| | | * @abstract |
| | | * @param {Dependency} dependency the dependency for which the template should be applied |
| | | * @param {ReplaceSource} source the current replace source which can be modified |