Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(react): use vite and vitest rather than react-scripts #376

Merged
merged 3 commits into from
Dec 8, 2023
Merged

Conversation

alexeagle
Copy link
Collaborator

@alexeagle alexeagle commented Dec 8, 2023

react-scripts (the build system stamped out by create-react-app aka CRA) is no longer recommended by https://react.dev/learn/start-a-new-react-project and instead developers are encouraged to use 'a framework'.
In the "Can I use React without a framework?" section, they suggest rolling up your sleeves and just use a bundler like Vite - that's what we do here.

This PR mostly prepared just by following public guides, such as
https://dev.to/henriquejensen/migrating-from-create-react-app-to-vite-a-quick-and-easy-guide-5e72

Note that vitest just hit 1.0 three days ago (as of this writing) so it's good timing for us to demonstrate adoption. We got some confidence in this recommendation since Sourcegraph recently did it: sourcegraph/sourcegraph#57886

react-scripts (the build system stamped out by create-react-app aka CRA) is no longer recommended by
https://react.dev/learn/start-a-new-react-project and instead developers are encouraged to use 'a framework'.
@alexeagle alexeagle merged commit e2746bf into main Dec 8, 2023
5 checks passed
@alexeagle alexeagle deleted the frontend branch December 8, 2023 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants