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

Cleanup: prepare to switch from CRA to Vite #732

Merged
merged 3 commits into from
Nov 17, 2024

Conversation

sergei-maertens
Copy link
Member

@sergei-maertens sergei-maertens commented Nov 17, 2024

Part of #724

  • Removed ~ in sass imports to point to node_modules (it's a relic of the past)
  • Renamed files that use React components from .js to .jsx

Both changes are required to be able to use Vite.

This used to be a way to force sass to resolve imports from
node_modules, but it is no longer necessary. Vite does not support it,
so we can already prepare by getting rid of them and making the
toolchain switch slightly easier/smaller.
Copy link

codecov bot commented Nov 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.49%. Comparing base (3fe8367) to head (bd02c25).
Report is 4 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #732       +/-   ##
===========================================
- Coverage   77.93%   64.49%   -13.44%     
===========================================
  Files         238      299       +61     
  Lines        4939     6123     +1184     
  Branches     1348     1305       -43     
===========================================
+ Hits         3849     3949      +100     
- Misses       1056     2156     +1100     
+ Partials       34       18       -16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Vite requires the filename to be .jsx if React components are used
in them. Not all files have react components in them, but they
might in the future, and this way we only have a single rename
commit that we can easily ignore from the git blame, keeping
commit history properly intact now and in the future.
@sergei-maertens sergei-maertens force-pushed the chore/prepare-for-vite-switch branch from 352d94a to bd02c25 Compare November 17, 2024 15:50
@sergei-maertens sergei-maertens merged commit 5a418c4 into main Nov 17, 2024
14 of 15 checks passed
@sergei-maertens sergei-maertens deleted the chore/prepare-for-vite-switch branch November 17, 2024 16:21
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.

1 participant