From 0922ce431da8c2e9d79717214434cfcbb22fa710 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 19 Dec 2017 08:51:54 -0500 Subject: [PATCH] remove HMR stuff, let sapper inject it. fixes #2 (#12) --- templates/main.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/templates/main.js b/templates/main.js index 6057e23..85f3d91 100644 --- a/templates/main.js +++ b/templates/main.js @@ -1,10 +1,4 @@ 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(); -// } \ No newline at end of file +init(document.querySelector('#sapper'), __routes__); \ No newline at end of file