diff --git a/packages/app/src/entry.ts b/packages/app/src/entry.ts index 251cb5d012..1ced458e19 100644 --- a/packages/app/src/entry.ts +++ b/packages/app/src/entry.ts @@ -26,8 +26,9 @@ 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() + // @ts-ignore + if (process.dev && import.meta.webpackHot) { + import.meta.webpackHot.accept() } entry = async function initApp () {