diff --git a/packages/scandipwa/src/index.tsx b/packages/scandipwa/src/index.tsx index 9fadf40206..4f428c4225 100644 --- a/packages/scandipwa/src/index.tsx +++ b/packages/scandipwa/src/index.tsx @@ -29,4 +29,15 @@ if ('serviceWorker' in navigator) { const container = document.getElementById('root'); const root = createRoot(container!); -root.render(); +// Code bellow enables the hot reloading of plugins +// Why? I have no idea. Further debugging needed. +// TODO: understand why this helps HMR +if (module.hot) { + module.hot.accept(); +} + +function HotApp() { + return ; +} + +root.render();