Skip to content

Conversation

@vgeorge
Copy link
Contributor

@vgeorge vgeorge commented Oct 30, 2025

Contributes to:

Notes:

  • Renamed 33 files that import React to have .jsx extension
  • This prepares the codebase for modern build tools like Vite
  • Library build with Parcel tested and working correctly
  • Vite build recognizes JSX syntax (SASS config needed separately)

This is ready for review.

- Renamed 33 files that import React to have .jsx extension
- This prepares the codebase for modern build tools like Vite
- Library build with Parcel tested and working correctly
- Vite build recognizes JSX syntax (SASS config needed separately)

This is a preparatory step for the monorepo migration where we plan
to migrate from Parcel to Vite for library builds.
@netlify
Copy link

netlify bot commented Oct 30, 2025

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit 7507dbd
🔍 Latest deploy log https://app.netlify.com/projects/veda-ui/deploys/69035cf236d1c20008595a32
😎 Deploy Preview https://deploy-preview-1901--veda-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@vgeorge vgeorge requested review from AliceR and dzole0311 October 30, 2025 12:46
Copy link
Contributor

@ifsimicoded ifsimicoded left a comment

Choose a reason for hiding this comment

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

I'm not sure the specifics of what should be checked or the review process, so you may want another's 👀 . But this seems like a simple change to me -- if the app transpiles/builds it should be good to go! That said, I saw this thread on adjusting the vite config to accept jsx within js files for esbuild, but haven't tested.

Related, curious if we'll move to tsx and introduce typing? 🚀

@vgeorge
Copy link
Contributor Author

vgeorge commented Oct 31, 2025

@ifsimicoded thanks for the review! This is a fairly straightforward change, I believe it’s safe to just rename the files. The current build tooling is quite lax with file extensions, but Vite isn’t (unless you use a workaround as you pointed out). Ideally, our component files should be .tsx, but I don’t think the effort is worth it in this case since the goal is simply to prepare for the migration to Vite.

@vgeorge vgeorge merged commit 11ffe2c into main Oct 31, 2025
10 checks passed
@vgeorge vgeorge deleted the feat/react-jsx-file-extensions branch October 31, 2025 10:02
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