Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from react-scripts to Vite #2297

Open
1 task
rashidakanchwala opened this issue Mar 11, 2025 · 2 comments
Open
1 task

Migrate from react-scripts to Vite #2297

rashidakanchwala opened this issue Mar 11, 2025 · 2 comments

Comments

@rashidakanchwala
Copy link
Contributor

rashidakanchwala commented Mar 11, 2025

Description

Since CRA is being deprecated, and we still use react-scripts, we need to migrate Kedro-Viz to Vite as recommended by React. react-scripts handles bundling, the dev server, and testing, but Vite is faster and better suited for modern React. The migration will update the build system, replace CRA-specific scripts, and ensure tests still work.

FYI, We can also look at Parcel, or RSBuild but we did some work making our React app compatible to 'Vite' already so we should go for it. Let me know if you think otherwise.

Context

Why is this change important to you? How would you use it? How can it benefit other users?

Possible Implementation

(Optional) Suggest an idea for implementing the addition or change.

Possible Alternatives

(Optional) Describe any alternative solutions or features you've considered.

Checklist

  • Include labels so that we can categorise your feature request
@astrojuanlu
Copy link
Member

We can also look at Parcel, or RSBuild but we did some work making our React app compatible to 'Vite' already so we should go for it.

💯 Thanks @rashidakanchwala !

@rashidakanchwala rashidakanchwala moved this to In Progress in Kedro 🔶 Mar 11, 2025
@rashidakanchwala
Copy link
Contributor Author

I managed to get the dev version working and replaced workerize-loader, as Vite doesn't support it.

Once this is done, we should be able to close ticket #2013.

Next, I'll be working on tests (Jest) and fixing any build-related issues.

@rashidakanchwala rashidakanchwala self-assigned this Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

2 participants