diff --git a/src/index.html b/src/index.html index d49d4854..658bd575 100644 --- a/src/index.html +++ b/src/index.html @@ -12,5 +12,6 @@ + diff --git a/src/init-app.tsx b/src/init-app.tsx index 12412166..6b553706 100644 --- a/src/init-app.tsx +++ b/src/init-app.tsx @@ -14,12 +14,8 @@ if (process.env.NODE_ENV !== 'production') { // Enable support for React DevTools and some helpful console warnings: require('preact/debug'); - // When an update to any module is received, re-import the app and trigger a full re-render: - module.hot.accept('./components/App', () => { - // The linter doesn't like the capital A in App. It is wrong. - // tslint:disable-next-line variable-name - import('./components/App').then(({ default: App }) => { - root = render(, document.body, root); - }); - }); + // Full HMR may not be working due to https://github.com/parcel-bundler/parcel/issues/5016 + if (module.hot) { + module.hot.accept(); + } }