Skip to content

Commit

Permalink
fix HMR for dynamic entries (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzawa authored and rauchg committed Jan 5, 2017
1 parent 47a7a48 commit b8373b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/build/plugins/watch-pages-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand All @@ -66,7 +66,7 @@ export default class WatchPagesPlugin {
if (defaultPages.has(name)) {
compiler.addEntry([
hotMiddlewareClientPath,
defaultPages.get(name)
defaultPages.get(name) + '?entry'
], name)
}
})
Expand Down

0 comments on commit b8373b8

Please sign in to comment.