diff --git a/packages/app/src/entry.ts b/packages/app/src/entry.ts index 987ea00164..251cb5d012 100644 --- a/packages/app/src/entry.ts +++ b/packages/app/src/entry.ts @@ -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)