1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

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 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 {
if (defaultPages.has(name)) { if (defaultPages.has(name)) {
compiler.addEntry([ compiler.addEntry([
hotMiddlewareClientPath, hotMiddlewareClientPath,
defaultPages.get(name) defaultPages.get(name) + '?entry'
], name) ], name)
} }
}) })