Migrate the whole Project to Vite for Enhanced Performance and Developer Experience
The current frontend of the HungryBox project is built using Create React App (CRA). While CRA has been effective for bootstrapping React applications, migrating to Vite offers several advantages, including:
- Faster Development Builds: Vite’s ES module-based bundling significantly reduces development server startup times.
- Optimized Production Builds: Vite produces smaller and faster production bundles with better tree-shaking and code-splitting.
- Modern Development Ecosystem: Vite provides native support for modern JavaScript and frameworks, improving compatibility and development experience.
- Lightweight Dependency Footprint: Removing react-scripts and associated dependencies will streamline the project's dependency tree
Current Configuration:
The frontend project (hungrybox) is currently configured as follows:
- Dependencies:
- React: ^18.3.1
- React DOM: ^18.3.1
- React Router DOM: ^6.23.0
- Axios: ^1.7.2
- Framer Motion: ^11.17.0
- Testing Libraries: @testing-library/react, @testing-library/jest-dom, @testing-library/user-event.
- CRA-Specific Dependency: react-scripts: 5.0.1
- Scripts:
- start, build, test, and eject scripts use CRA.
- DevDependencies:
- Babel plugin: @babel/plugin-proposal-private-property-in-object.
@712Kunal Alright, go ahead
Its not a biginner thing to migrate, its very difficult to migrate the whole application from one tool to the another.
It's at-most an intermediate task (keeping project's complexity in mind), the reason I gave it a beginner tag was because it you're just changing the bundler template.
@712Kunal Giving an advanced tag is not an option here