fix(app): temporary webpack5 'hotfix' (#290)

https://github.com/webpack-contrib/webpack-hot-middleware/issues/390
This commit is contained in:
Daniel Roe 2021-06-30 17:02:57 +01:00 committed by GitHub
parent 6cd5f8816f
commit 8faf069778
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,12 @@ if (process.server) {
} }
if (process.client) { 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 () { entry = async function initApp () {
const app = createSSRApp(App) const app = createSSRApp(App)