Skip to content

Commit 2b1942c

Browse files
committed
fix hmr
1 parent 4b0b20d commit 2b1942c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ initSocket();
111111
if (module.hot) {
112112
module.hot.accept('./routes', () => {
113113
const nextRoutes = require('./routes');
114-
hydrate(nextRoutes).catch(err => {
114+
hydrate(nextRoutes.__esModule ? nextRoutes.default : nextRoutes).catch(err => {
115115
console.error('Error on routes reload:', err);
116116
});
117117
});

0 commit comments

Comments
 (0)