lxieyang / chrome-extension-boilerplate-react

A Chrome Extensions boilerplate using React 18 and Webpack 5.
MIT License
3.57k stars 1.1k forks source link

React-hot-loader is unused #114

Closed headfire94 closed 1 year ago

headfire94 commented 2 years ago

Currently whole page re-loads with default webpack hot reload. React hot loader doesn't work because

To start using react-hot-loader need to follow instruction https://github.com/gaearon/react-hot-loader#getting-started

Mark your root component as hot-exported:

But it won't work because eval not supported in current env

Godiswill commented 2 years ago

I also fixed this by react-refresh, here is a repo.

lxieyang commented 1 year ago

fixed in the latest version with react 18