Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Conversation

@Rich-Harris
Copy link
Member

This started out as an attempt to improve the reliability of HMR when service workers are involved, but ended up being a bit more wide-ranging:

  • Changes to the service worker are reflected without needing to restart the server
  • Ditto for app/template.html. Additionally, editing that file will cause the page to reload
  • hmr-client.js is now sapper-dev-client.js, reflecting the fact that it's not just for HMR any more
  • Template handling is simpler
  • Generated assets are cached in memory, rather than read from disk for each request

The HMR problem turned out to be that the service worker intercepted the EventSource connection incorrectly. It needs to be fixed in sapper-template, which will happen once this is released.

@Rich-Harris Rich-Harris merged commit 4d79cb8 into master Mar 4, 2018
@Rich-Harris Rich-Harris deleted the stability branch March 4, 2018 04:02
@Rich-Harris
Copy link
Member Author

This also fixes #116

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants