From b8373b847dcf5d88ccfce27c7504331d63a9f6a5 Mon Sep 17 00:00:00 2001 From: Naoyuki Kanezawa Date: Fri, 6 Jan 2017 02:29:09 +0900 Subject: [PATCH] fix HMR for dynamic entries (#652) --- server/build/plugins/watch-pages-plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/build/plugins/watch-pages-plugin.js b/server/build/plugins/watch-pages-plugin.js index 9f2af05c..b2a7cfc7 100644 --- a/server/build/plugins/watch-pages-plugin.js +++ b/server/build/plugins/watch-pages-plugin.js @@ -53,7 +53,7 @@ export default class WatchPagesPlugin { if (compiler.hasEntry(name)) return - const entries = [hotMiddlewareClientPath, f] + const entries = [hotMiddlewareClientPath, f + '?entry'] compiler.addEntry(entries, name) }) @@ -66,7 +66,7 @@ export default class WatchPagesPlugin { if (defaultPages.has(name)) { compiler.addEntry([ hotMiddlewareClientPath, - defaultPages.get(name) + defaultPages.get(name) + '?entry' ], name) } })