Open joaquimrocha opened 11 months ago
Honestly I think vite is the only real options that is both mature and performant. And vite's development experience is really great. Migration should be straightforward, this project doesn't really use any complicated webpack features, all the plugins are simple js/css/ts/svg loaders that vite will handle without a problem.
In addition we can also take advantage of vitest, which is mostly compatible with jest. It uses the same resolution and bundling as vite (and the same viteconfig.ts file) so we can reduce amount of configuration and unify building and testing.
Opening because the second vite PR is still ongoing: https://github.com/headlamp-k8s/headlamp/pull/2001
CRA seems to be inactive/unmaintained. So we should move to another solution in order to keep getting updates. Maybe Vite is the solution but not at all a drop-in replacement. So anything that doesn't require rewiring the whole app would be good.
Acceptance Criteria: