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

Clean up file path and import #1250

Merged
merged 7 commits into from
Oct 6, 2023
Merged

Conversation

Angra974
Copy link
Contributor

First thing, PLEASE READ THIS: ReactPlay Code Review Checklist

Description

When using the application with Vite, each time some files need to be modified to get it started without looking about the
difference of parameters/configuration.

We can easily avoid this by cleaning the code and let the developer mind what he want to implement.

Fixes #1249

Type of change

And relative path where the where not used ( App.jsx and index.jsx )
Clean relative path where the where used by was not efficient because CRA accepts them but not other bundlers.
Add jsx extensions to a play ( react-transition )
Clean up bad import

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Not a bug fix but fixes an issue

How Has This Been Tested?

With CRA and Vite.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Screenshots or example output

see #1249 for screenshots of problems.

@Angra974 Angra974 self-assigned this Sep 23, 2023
@vercel
Copy link

vercel bot commented Sep 23, 2023

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

Name Status Preview Comments Updated (UTC)
react-play ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 6, 2023 6:55am

@netlify
Copy link

netlify bot commented Sep 23, 2023

Deploy Preview for reactplayio failed.

Name Link
🔨 Latest commit d48f4e6
🔍 Latest deploy log https://app.netlify.com/sites/reactplayio/deploys/651fac72a2a9e50009bd4d43

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hey! contributor, thank you for opening a Pull Request 🎉.

@reactplay/maintainers will review your submission soon and give you helpful feedback. If you're interested in continuing your contributions to open source and want to be a part of a welcoming and fantastic community, we invite you to join our ReactPlay Discord Community.
Show your support by starring ⭐ this repository. Thank you and we appreciate your contribution to open source!
Stale Marking : After 30 days of inactivity this issue/PR will be marked as stale issue/PR and it will be closed and locked in 7 days if no further activity occurs.

Copy link
Member

@Angryman18 Angryman18 left a comment

Choose a reason for hiding this comment

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

LGTM. there could be another ticket for the eventPartners and eventProviders to move them into constant file rather than putting in the component itself.

@priyankarpal priyankarpal merged commit 905694b into main Oct 6, 2023
2 of 7 checks passed
@priyankarpal priyankarpal deleted the issue1249_prepare_for_vite branch October 6, 2023 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve portability to vitejs or other bundler by cleaning the code
3 participants