web-monetization-projects icon indicating copy to clipboard operation
web-monetization-projects copied to clipboard

Use Vite

Open sublimator opened this issue 1 year ago • 3 comments

Has HMR support: https://github.com/crxjs/chrome-extension-tools

sublimator avatar Mar 27 '23 00:03 sublimator

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.

sublimator avatar Apr 09 '23 02:04 sublimator

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.

sublimator avatar Apr 09 '23 04:04 sublimator

@vitejs/plugin-react-swc is even faster again

sublimator avatar Apr 11 '23 23:04 sublimator