This PR migrates the Dashboard's development environment from Create React App to Vite.
Create React App by itself has several limitations and it's now only considered as a quick launcher tool for small projects, see: https://github.com/reactjs/react.dev/pull/5487#issuecomment-1409720741.
On the other hand, Vite has emerged as a good development environment with out-of-the-box support for modern tooling (TypeScript, JSX, CSS, native ES modules, Rollup and its plugin ecosystem).
Notable changes:
CRA (hence Webpack) is removed, and configuring the development environment is now done with Vite and its plugins.
The Jest test runner has been removed in favor of Vitest, an almost drop-in replacement.
The NPM command npm run jest:test has been renamed to npm run test
Other than that, the other NPM commands (npm run start and npm run build) and the development UX stay the same.
This PR migrates the Dashboard's development environment from Create React App to Vite. Create React App by itself has several limitations and it's now only considered as a quick launcher tool for small projects, see: https://github.com/reactjs/react.dev/pull/5487#issuecomment-1409720741. On the other hand, Vite has emerged as a good development environment with out-of-the-box support for modern tooling (TypeScript, JSX, CSS, native ES modules, Rollup and its plugin ecosystem).
Notable changes:
npm run jest:test
has been renamed tonpm run test
npm run start
andnpm run build
) and the development UX stay the same.