fix HMR for dynamic entries (#652)

This commit is contained in:
Naoyuki Kanezawa 2017-01-06 02:29:09 +09:00 committed by Guillermo Rauch
parent 47a7a480d4
commit b8373b847d

View file

@ -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)
}
})