| | |
| | | /** @typedef {import("../declarations/WebpackOptions").Externals} Externals */ |
| | | /** @typedef {import("./Compiler")} Compiler */ |
| | | /** @typedef {import("./ExternalModule").Imported} Imported */ |
| | | /** @typedef {import("./Dependency")} Dependency */ |
| | | |
| | | const PLUGIN_NAME = "ExternalsPlugin"; |
| | | |
| | | class ExternalsPlugin { |
| | | /** |
| | | * @param {ExternalsType} type default external type |
| | | * Creates an instance of ExternalsPlugin. |
| | | * @param {ExternalsType | ((dependency: Dependency) => ExternalsType)} type default external type |
| | | * @param {Externals} externals externals config |
| | | */ |
| | | constructor(type, externals) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Apply the plugin |
| | | * Applies the plugin by registering its hooks on the compiler. |
| | | * @param {Compiler} compiler the compiler instance |
| | | * @returns {void} |
| | | */ |