On this page

Source Code: lib/ProvidePlugin.js#L25
new ProvidePlugin(definitions): ProvidePlugin
Source Code: lib/ProvidePlugin.js#L30
Attributes
definitions:Record<string, string | string[]>

Creates an instance of ProvidePlugin.

Source Code: lib/ProvidePlugin.js#L32
Type:Record<string, string | string[]>
providePlugin.apply(compiler): void
Source Code: lib/ProvidePlugin.js#L40
Attributes
compiler:Compiler

Applies the plugin by registering its hooks on the compiler.