| | |
| | | /** @typedef {import("../util/fs").InputFileSystem} InputFileSystem */ |
| | | |
| | | /** |
| | | * Defines the node environment plugin options type used by this module. |
| | | * @typedef {object} NodeEnvironmentPluginOptions |
| | | * @property {InfrastructureLogging} infrastructureLogging infrastructure logging options |
| | | */ |
| | |
| | | |
| | | class NodeEnvironmentPlugin { |
| | | /** |
| | | * Creates an instance of NodeEnvironmentPlugin. |
| | | * @param {NodeEnvironmentPluginOptions} options options |
| | | */ |
| | | constructor(options) { |
| | | /** @type {NodeEnvironmentPluginOptions} */ |
| | | this.options = options; |
| | | } |
| | | |
| | | /** |
| | | * Apply the plugin |
| | | * Applies the plugin by registering its hooks on the compiler. |
| | | * @param {Compiler} compiler the compiler instance |
| | | * @returns {void} |
| | | */ |