new HotModuleReplacementPlugin(): HotModuleReplacementPluginReturns:
HotModuleReplacementPluginapply(compiler): voidAttributes
Applies the plugin by registering its hooks on the compiler.
Attributes
parser:
JavascriptParserthe parser
Returns:
HMRJavascriptParserHooksthe attached hooks
Returns the attached hooks.
Attributes
hotAcceptCallback:
SyncBailHook<[ClassExpression | Identifier | SimpleLiteral | RegExpLiteral | BigIntLiteral | ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | SimpleCallExpression | NewExpression | ChainExpression | ConditionalExpression | FunctionExpression | ImportExpression | LogicalExpression | MemberExpression | MetaProperty | ObjectExpression | SequenceExpression | TaggedTemplateExpression | TemplateLiteral | ThisExpression | UnaryExpression | UpdateExpression | YieldExpression | SpreadElement, string[]], void>hotAcceptWithoutCallback:
SyncBailHook<[CallExpression, string[]], void>