From 8faf06977826d44678171dcc085965d6ae31ed6f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 30 Jun 2021 17:02:57 +0100 Subject: [PATCH] fix(app): temporary webpack5 'hotfix' (#290) https://github.com/webpack-contrib/webpack-hot-middleware/issues/390 --- packages/app/src/entry.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/app/src/entry.ts b/packages/app/src/entry.ts index 987ea001643..251cb5d012a 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)