Skip to content

chore: Use Vite as build tool #4239

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

Merged
merged 2 commits into from
Sep 28, 2022
Merged

Conversation

BrunoQuaresma
Copy link
Collaborator

Running some build comparisons with Vite and Webpack for prod.

  • Webpack - 20M - yarn build 13.41s user 1.14s system 220% cpu 6.598 total
  • Vite - 20M - yarn vite build 32.33s user 1.84s system 158% cpu 21.545 total

Vite, surprisingly, does not perform well as webpack on build BUT it is WAY easier to set up. No need for extra files or a lot of plugins.

For now, I'm keeping Webpack + related config to make it easier to roll back if we need it.

@BrunoQuaresma BrunoQuaresma requested a review from a team as a code owner September 28, 2022 14:22
@BrunoQuaresma BrunoQuaresma self-assigned this Sep 28, 2022
@BrunoQuaresma BrunoQuaresma requested review from greyscaled, jsjoeio and a team and removed request for a team and greyscaled September 28, 2022 14:22
Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

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

Can we remove webpack dependencies here too?

@BrunoQuaresma
Copy link
Collaborator Author

@kylecarbs For now, I'm keeping Webpack + related config to make it easier to roll back if we need it. Just being extra cautious.

@BrunoQuaresma BrunoQuaresma merged commit af502a6 into main Sep 28, 2022
@BrunoQuaresma BrunoQuaresma deleted the bq/use-vite-as-builder-tool branch September 28, 2022 16:11
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.

3 participants