Use Vite
sublimator opened this issue · comments
Nicholas Dudfield commented
Has HMR support:
https://github.com/crxjs/chrome-extension-tools
Nicholas Dudfield commented
Used this on a personal project and while it was awesome for HMR it was awfully slow for cold starts, taking around 60s to build. Need to see if can fix that somehow.
Nicholas Dudfield commented
The beta versions of [vite, @crxjs/vite-plugin, @vitejs/plugin-react] seem to run much faster, taking only around 15s to build on a cold start. It requires setting "type": "module" to use esm which may be problematic.
Nicholas Dudfield commented
@vitejs/plugin-react-swc is even faster again