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' (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Jun 30, 2021
1 parent 6cd5f88 commit 8faf069
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 8faf069

Please sign in to comment.