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:
parent
47a7a480d4
commit
b8373b847d
|
@ -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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue