new HotModuleReplacementPlugin(): HotModuleReplacementPluginReturns:
<HotModuleReplacementPlugin>apply(compiler): voidAttributes
compiler:
<Compiler>the compiler instance
Returns:
<void>Applies the plugin by registering its hooks on the compiler.
Attributes
parser:
<JavascriptParser>the parser
Returns:
<HMRJavascriptParserHooks>the attached hooks
Returns the attached hooks.
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>>