headlamp-k8s / headlamp

A Kubernetes web UI that is fully-featured, user-friendly and extensible
https://headlamp.dev
Apache License 2.0
1.8k stars 135 forks source link

Replace CRA (create-react-app) #1282

Open joaquimrocha opened 11 months ago

joaquimrocha commented 11 months ago

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:

illume commented 2 months ago
sniok commented 1 month 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.

sniok commented 1 month ago

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.

illume commented 1 week ago

Opening because the second vite PR is still ongoing: https://github.com/headlamp-k8s/headlamp/pull/2001