update sapper

This commit is contained in:
Rich Harris
2017-12-18 16:24:56 -05:00
committed by GitHub
parent 5316be97b2
commit b69d378fae
3 changed files with 12 additions and 9 deletions

View File

@@ -3,8 +3,8 @@ import { init } from '__app__';
// `routes` is an array of route objects injected by Sapper
init(document.querySelector('#sapper'), __routes__);
if (__dev__) {
// Enable hot-module reloading
import('sapper/webpack/hmr');
if (module.hot) module.hot.accept();
}
// if (__dev__) {
// // Enable hot-module reloading
// import('sapper/webpack/hmr');
// if (module.hot) module.hot.accept();
// }