Skip to content

fix: initializer file not loaded in Expo52 #6980

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

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

tjzel
Copy link
Collaborator

@tjzel tjzel commented Feb 5, 2025

Summary

Turns out that sideEffects field was ignored and isWeb() check evaluated to static false, removing initializers.ts from the bundle.

Fixes

Test plan

Tested it on RNGH web example app using Expo52

Copy link
Contributor

@m-bert m-bert left a comment

Choose a reason for hiding this comment

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

Works for me 🚀

@tjzel tjzel added this pull request to the merge queue Feb 5, 2025
Merged via the queue into main with commit 95863a8 Feb 5, 2025
12 checks passed
@tjzel tjzel deleted the @tjzel/fix-expo52-initialization branch February 5, 2025 14:02
tjzel added a commit that referenced this pull request Feb 17, 2025
Turns out that `sideEffects` field was ignored and `isWeb()` check
evaluated to static false, removing `initializers.ts` from the bundle.

Fixes
- #6740
- #6839

Tested it on RNGH web example app using Expo52

Co-authored-by: Michał Bert <[email protected]>
tjzel added a commit that referenced this pull request Feb 18, 2025
Turns out that `sideEffects` field was ignored and `isWeb()` check
evaluated to static false, removing `initializers.ts` from the bundle.

Fixes
- #6740
- #6839

Tested it on RNGH web example app using Expo52

Co-authored-by: Michał Bert <[email protected]>
tjzel added a commit that referenced this pull request Feb 18, 2025
Turns out that `sideEffects` field was ignored and `isWeb()` check
evaluated to static false, removing `initializers.ts` from the bundle.

Fixes
- #6740
- #6839

Tested it on RNGH web example app using Expo52

Co-authored-by: Michał Bert <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants