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

Fix duplicate react imports #724

Merged
merged 2 commits into from
Jan 23, 2025
Merged

Fix duplicate react imports #724

merged 2 commits into from
Jan 23, 2025

Conversation

hatemhosny
Copy link
Collaborator

it no longer needs deps param

What type of PR is this? (check all applicable)

  • ✨ Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • ♻️ Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert
  • 🌐 Internationalization / Translation

Description

This PR fixes error when importing react libraries, where multiple instances of react were imported.

See:
https://github.com/orgs/live-codes/discussions/627
esm-dev/esm.sh#861

When using react (jsx, tsx, react, react-tsx, etc), react and react-dom are marked as external dependencies and are explicitly added to import map

Copy link

netlify bot commented Jan 23, 2025

βœ… Deploy Preview for livecodes ready!

Name Link
πŸ”¨ Latest commit 06bcd8a
πŸ” Latest deploy log https://app.netlify.com/sites/livecodes/deploys/67927f7db0e46400080573c9
😎 Deploy Preview https://deploy-preview-724--livecodes.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 site configuration.

Copy link

Copy link

cloudflare-workers-and-pages bot commented Jan 23, 2025

Deploying livecodes with Β Cloudflare Pages Β Cloudflare Pages

Latest commit: 06bcd8a
Status:Β βœ…Β  Deploy successful!
Preview URL: https://5f12f27f.livecodes.pages.dev
Branch Preview URL: https://fix-duplicate-react-import.livecodes.pages.dev

View logs

@hatemhosny hatemhosny merged commit 0728ef1 into develop Jan 23, 2025
18 checks passed
@hatemhosny hatemhosny deleted the fix-duplicate-react-import branch January 23, 2025 20:18
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