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

chore: use .jsx and .module.css file extensions where appropriate #1444

Merged
merged 3 commits into from
May 1, 2024

Conversation

eglitise
Copy link
Collaborator

This PR is a preparatory step towards (finally) migrating away from Parcel v1.

I've done a bit of experimenting on a fresh Electron+React project with Parcel v2, and it did not look great. Their Electron integration is unfortunately not as good as it could be, seemingly requiring a rewrite of some parts into CJS (though I didn't fully figure this part out).
Then I tried Webpack, but it required a lot of tinkering with its config files - too much for my limited knowledge.
Finally I tried Vite... and I actually managed to get it to work, for both web and Electron formats. So I am proposing to drop Parcel entirely and instead migrate to Vite.

I already started working on this migration, and managed to get the web version fully working (with one exception for i18n). But, as part of getting this to work, Vite required changing the extensions for React and CSS module files. Since this affected a lot of files, I thought of separating the changes into its own PR - and after some brief testing with Parcel v1, I did not observe any issues.

@github-actions github-actions bot added the chore Internal changes not visible to the user label Apr 30, 2024
Copy link
Contributor

@mykola-mokhnach mykola-mokhnach left a comment

Choose a reason for hiding this comment

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

the change looks safe to me

@eglitise eglitise merged commit d92f497 into appium:main May 1, 2024
6 checks passed
@eglitise eglitise deleted the vite-phase-1 branch May 1, 2024 08:20
@jlipps
Copy link
Member

jlipps commented May 1, 2024

I'm OK with choosing Vite over Parcel v2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Internal changes not visible to the user
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants