Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(app): temporary webpack5 'hotfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 30, 2021
1 parent 35e2b47 commit c1fb809
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/app/src/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ if (process.server) {
}

if (process.client) {
// TODO: temporary webpack 5 HMR fix
// https://github.com/webpack-contrib/webpack-hot-middleware/issues/390
if (process.dev && module.hot) {
module.hot.accept()
}

entry = async function initApp () {
const app = createSSRApp(App)

Expand Down

0 comments on commit c1fb809

Please sign in to comment.