Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

v4.0.0

Compare
Choose a tag to compare
@shellscape shellscape released this 02 Jun 17:22
· 19 commits to master since this release

Bugfixes

  • fix: throw error when HMR plugin exists in config (#66)
  • fix: hotClientOptions when autoConfigure: false (#65)

Features

  • feat: allEntries applies client entry to all entries (#64)
  • Added the ability to pass host: { client: '*' } to instruct client WebSockets to connect to window.location.hostname.
  • Added the validTargets option to allow setting other valid build targets aside from 'web'.

Updates

Breaking Changes

  • The default port is now 0, meaning a dynamic, system-assigned port will be used by default. In most cases there is no need to specify a port for the WebSocket server.
  • Changed the hot option to hmr as 'hmr' is more semantically correct, and 'hot' is too vague.
  • The WHC_TARGET environment variable now does nothing. Use the validTargets option.

See the README for a revised list of Gotchas