Commit b8373b84 authored by Naoyuki Kanezawa's avatar Naoyuki Kanezawa Committed by Guillermo Rauch

fix HMR for dynamic entries (#652)

parent 47a7a480
...@@ -53,7 +53,7 @@ export default class WatchPagesPlugin { ...@@ -53,7 +53,7 @@ export default class WatchPagesPlugin {
if (compiler.hasEntry(name)) return if (compiler.hasEntry(name)) return
const entries = [hotMiddlewareClientPath, f] const entries = [hotMiddlewareClientPath, f + '?entry']
compiler.addEntry(entries, name) compiler.addEntry(entries, name)
}) })
...@@ -66,7 +66,7 @@ export default class WatchPagesPlugin { ...@@ -66,7 +66,7 @@ export default class WatchPagesPlugin {
if (defaultPages.has(name)) { if (defaultPages.has(name)) {
compiler.addEntry([ compiler.addEntry([
hotMiddlewareClientPath, hotMiddlewareClientPath,
defaultPages.get(name) defaultPages.get(name) + '?entry'
], name) ], name)
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment