| | |
| | | |
| | | class ProvidePlugin { |
| | | /** |
| | | * Creates an instance of ProvidePlugin. |
| | | * @param {Record<string, string | string[]>} definitions the provided identifiers |
| | | */ |
| | | constructor(definitions) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Apply the plugin |
| | | * Applies the plugin by registering its hooks on the compiler. |
| | | * @param {Compiler} compiler the compiler instance |
| | | * @returns {void} |
| | | */ |
| | |
| | | new ProvidedDependency.Template() |
| | | ); |
| | | /** |
| | | * Handles the hook callback for this code path. |
| | | * @param {JavascriptParser} parser the parser |
| | | * @param {JavascriptParserOptions} parserOptions options |
| | | * @returns {void} |