HungryBox icon indicating copy to clipboard operation
HungryBox copied to clipboard

Migrate the whole Project to Vite for Enhanced Performance and Developer Experience

Open 712Kunal opened this issue 1 year ago • 4 comments

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:

  1. Faster Development Builds: Vite’s ES module-based bundling significantly reduces development server startup times.
  2. Optimized Production Builds: Vite produces smaller and faster production bundles with better tree-shaking and code-splitting.
  3. Modern Development Ecosystem: Vite provides native support for modern JavaScript and frameworks, improving compatibility and development experience.
  4. 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:

  1. 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
  1. Scripts:
  • start, build, test, and eject scripts use CRA.
  1. DevDependencies:
  • Babel plugin: @babel/plugin-proposal-private-property-in-object.

712Kunal avatar Jan 20 '25 15:01 712Kunal

@712Kunal Alright, go ahead

XDFrost avatar Jan 20 '25 15:01 XDFrost

Its not a biginner thing to migrate, its very difficult to migrate the whole application from one tool to the another.

712Kunal avatar Jan 20 '25 15:01 712Kunal

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.

XDFrost avatar Jan 21 '25 06:01 XDFrost

@712Kunal Giving an advanced tag is not an option here

XDFrost avatar Jan 21 '25 06:01 XDFrost