fivem-react-boilerplate-lua
fivem-react-boilerplate-lua copied to clipboard
feat(web): vite
Pull Request Description
Using Vite instead of craco for faster dev server startup and building times, the boilerplate is generated using Vite's create cli.
Pull Request Checklist:
- [X] Have you followed the guidelines in our contributing document and Code of Conduct?
- [X] Have you checked to ensure there aren't other open for the same update/change?
- [X] Have you built and tested the
resourcein-game after the relevant change?
I do like Vite and the speed differences w/ ESBuild are massive. However, Vite doesn't support all of the capabilities of CRA. For instance, CRA supports out-of-the-box integration with Jest + React Testing Library which still isn't fully supported by Vite (although this is being actively worked on).
That being said, I'm unsure of the extent of usage for test runners within the FiveM ecosystem, so if this isn't a concern to most people I'm open to this change.
If anyone has any additional thoughts to add regarding this change, feel free to pitch in.
There are options like esbuild-jest, swc, even vite-jest. First class Jest integration is probably going to take a while.