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): add e2e bundling test for [email protected] #621

Merged
merged 7 commits into from
Jan 3, 2025

Conversation

byCedric
Copy link
Member

@byCedric byCedric commented Jan 3, 2025

Why

[email protected] imports the vendored event emitter file from react-native. This file unfortunately uses syntax that can't be parsed by the Babel flow parser ([key in keyof TEventToArgsMap]). To combat that, this PR adds the Hermes babel plugin for flow code.

How

Test Plan

See E2E tests

@byCedric byCedric changed the title test(snackager): add e2e bundling test for [email protected] fix(snackager): add e2e bundling test for [email protected] Jan 3, 2025
@byCedric byCedric force-pushed the @bycedric/snackager/fix-react-native-webview branch 2 times, most recently from 580978c to c9522d5 Compare January 3, 2025 11:37
@byCedric byCedric force-pushed the @bycedric/snackager/fix-react-native-webview branch from c9522d5 to 8d2e7e3 Compare January 3, 2025 11:44
@byCedric byCedric merged commit 6aaf5c4 into main Jan 3, 2025
26 checks passed
@byCedric byCedric deleted the @bycedric/snackager/fix-react-native-webview branch January 3, 2025 11:53
@Kudo
Copy link
Collaborator

Kudo commented Jan 3, 2025

thanks for fixing the problem. the EventEmitter from react-native-webview was imported by me 😅

@byCedric
Copy link
Member Author

byCedric commented Jan 5, 2025

So... IT WAS YOU!

Just kidding, Snackager should be able to parse any type of Flow code anyways -- happy to fix it.

henryz2004 added a commit to henryz2004/snack that referenced this pull request Jan 12, 2025
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.

2 participants