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

feat: Migrate from Create React App to Vite #283

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

juliopavila
Copy link
Collaborator

@juliopavila juliopavila commented Dec 27, 2023

Description:

This PR represents a significant shift from Create React App (CRA) to Vite, following the migration guide. The React team now recommends moving away from CRA to more flexible and efficient alternatives like Vite, particularly for managing large and complex applications.

Key Changes:

  1. Performance Boost: Vite offers faster build times and a more efficient development experience, enhancing overall productivity.
  2. Flexible Configuration: Unlike CRA, Vite provides greater flexibility in configuration, allowing for custom build processes and better integration with modern tools.
  3. Updated Dependencies: Transitioned to Vite-compatible dependencies, ensuring better maintenance and up-to-date packages.
  4. Enhanced Developer Experience: With features like fast refresh and optimized module loading, Vite significantly improves the developer experience.

Technical Steps:

  • Installed Vite and necessary plugins (@vitejs/plugin-react, vite-tsconfig-paths).
  • Created a new vite.config.ts file tailored to our application's needs.
  • Migrated index.html to the project root and updated script tags for Vite compatibility.
  • Updated package.json scripts to use Vite commands.
  • Addressed issues related to environment variables and browser compatibility by leveraging browserslist-to-esbuild.
  • Update Node version to 21

This migration aligns with the latest industry standards and prepares our application for future scalability and improvements.

image

Copy link

vercel bot commented Dec 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tabula ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 27, 2023 7:35pm

asgeir-s

This comment was marked as duplicate.

Copy link
Contributor

@asgeir-s asgeir-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants