new DefinePlugin(definitions): DefinePlugin
Attributes
definitions:
DefinitionsReturns:
DefinePluginCreate a new define plugin
Source Code: lib/DefinePlugin.js#L672Type:
DefinitionsDefinePlugin.getCompilationHooks(compilation): { definitions: SyncWaterfallHook<[Record<string, CodeValue>], Record<string, CodeValue>> }
Attributes
compilation:
CompilationDefinePlugin.getMergedDefinitionNode(compilation, key): MergedDefinitionNode
Attributes
DefinePlugin.getRuntimeRequirements(code): string[] | undefined
Attributes
DefinePlugin.stringifyMergedDefinition(compilation, parser, node, key, objKeys?): string
Attributes
DefinePlugin.toPropertyKey(key): string
Attributes
Type:
"webpack/DefinePlugin_hash"Type:
"webpack/DefinePlugin "definePlugin.apply(compiler): void
Attributes
compiler:
CompilerApplies the plugin by registering its hooks on the compiler.
DefinePlugin.runtimeValue(fn, options?): RuntimeValue
Attributes
fn:
(value: { key: string; module: NormalModule; version: ValueCacheVersion }) => CodeValuePrimitiveoptions:
true | string[] | RuntimeValueOptionsReturns:
RuntimeValueReturns runtime value.