Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(react): use vite and vitest rather than react-scripts (#376)
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: https://github.com/sourcegraph/sourcegraph/pull/57886
- Loading branch information