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(snackager): avoid incorrect externals when bundling modules #594

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

byCedric
Copy link
Member

Why

This should fix the wrong externals that @react-navigation/native@7.0.0-rc.12 is getting.

How

  • Combined legacy .mjs support with new .mjs and .cjs support.
  • Marked modules as not fully specified (adds extensions to the imports)

Test Plan

See staging and:

  • $ cd ./snackager
  • $ yarn bundle @react-navigation/native@7.0.0-rc.12 | yarn bunyan
  • Should not output extraneous externals:
    image

@byCedric byCedric merged commit 29c1d83 into main Jul 12, 2024
@byCedric byCedric deleted the @bycedric/snackager/fix-module-detection branch July 12, 2024 15:21
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.

None yet

1 participant