• Examples
  • Example 1: hot replace request handler of http server
  • Example 2: hot replace css
  • Example 3: Hot module replace with require.context
  • API
  • accept
  • decline
  • dispose/addDisposeHandler
  • removeDisposeHandler
  • Management API
  • check
  • apply
  • status
  • status/addStatusHandler
  • removeStatusHandler
  • How to deal with ...
  • ... a module without side effects (the standard case)
  • ... a module with side effects
  • ... a module with only side effects and no exports
  • ... the application entry module
  • ... external module with not handleable side effects