Closed zhuliminl closed 1 month ago
You can use this extension Extensions Reloader, I'm using this extension more then 2 years. 🙂
For some reason:
This extension may soon no longer be supported because it doesn't follow best practices for Chrome extensions.
crxjs@beta (currently 25 patch version) works perfecly with hot reload. For the hot reload (hot module replacement) to work with vite you need to have file export only one component. To remember this you can use eslint rule: https://github.com/ArnaudBarre/eslint-plugin-react-refresh
HMR should work in latest version. See https://crxjs.dev/vite-plugin/getting-started/react/content-script-hmr for instructions and let me know if it still doesn't.
Should work by default with crxjs@beta