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: @expo changed to expo in babel-loader config in webpack config templates #470

Merged
merged 4 commits into from
Dec 14, 2023

Conversation

outsung
Copy link
Contributor

@outsung outsung commented Dec 1, 2023

Summary

When using expo library or when using expo and repack,
Need to modify it to expo instead of @expo to work.

Can refer to this comment.

Test plan

Copy link

changeset-bot bot commented Dec 1, 2023

⚠️ No Changeset found

Latest commit: cf7cd39

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@RafikiTiki
Copy link
Member

Hey @outsung! First of all – thanks for your contribution!

I think the @expo regex was there for a reason – there are still some expo packages that are named @expo/package-name (for example: https://www.npmjs.com/package/@expo/vector-icons), and I think they still need to be processed by webpack. Let me ask around and see if we would like to leave the old @expo rule along with the new @expo one for backward compatibility.

@outsung
Copy link
Contributor Author

outsung commented Dec 5, 2023

@RafikiTiki Thanks for the confirmation!

@jbroma
Copy link
Member

jbroma commented Dec 12, 2023

@RafikiTiki any update on this?

@RafikiTiki
Copy link
Member

Thanks for pinging me – from my investigation, it looks like only the @expo/vector-icons package uses the @expo naming convention. I think we're good to remove it from the default webpack config since we're not using this package internally.

If anyone would want to use it, it can be added to the webpack config same as with other 3rd party packages that need to be transpiled by babel.

Copy link
Member

@jbroma jbroma left a comment

Choose a reason for hiding this comment

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

LGTM

@jbroma jbroma merged commit 90f550f into callstack:main Dec 14, 2023
4 checks passed
@jbroma
Copy link
Member

jbroma commented Dec 14, 2023

Thanks for your contribution @outsung!

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