Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Use Vite #3686

Open
sublimator opened this issue Mar 27, 2023 · 3 comments
Open

Use Vite #3686

sublimator opened this issue Mar 27, 2023 · 3 comments

Comments

@sublimator
Copy link
Member

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

@sublimator
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant