Switch the build system from webpack to vite. The current webpack build system is a left over from create-react-app (which is no longer maintained). With vite, I am seeing more than 2x improvement when building prod and "yes" improvement when starting up dev server (vite seems to do ondemand incremental compilation so it's hard to say how much, but the dashboard loads within a few secs).
The swap to vite also requires changing the test framework to vitest as jest does not play nice with esm modules.
Self-checks
[ ] I have prototyped this new feature (if necessary) on Figma
What's new
Switch the build system from webpack to vite. The current webpack build system is a left over from
create-react-app
(which is no longer maintained). With vite, I am seeing more than 2x improvement when building prod and "yes" improvement when starting up dev server (vite seems to do ondemand incremental compilation so it's hard to say how much, but the dashboard loads within a few secs).The swap to vite also requires changing the test framework to vitest as jest does not play nice with esm modules.
Self-checks
Discussion