Enable platform tree shaking in hermes bundle#83359
Enable platform tree shaking in hermes bundle#83359Julesssss merged 3 commits intoExpensify:mainfrom
Conversation
|
🚧 @roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
Codecov Report✅ All modified and coverable lines are covered by tests. |
|
🚧 @roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
I tested the build on Android - it looks fine. QAs will need to test the iOS as I cannot install the adhoc build. |
|
@dukenv0307 @roryabraham One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
iOS looks good to me! Tested the listed flows without issue. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 @Julesssss has triggered a test Expensify/App build. You can view the workflow run here. |
|
Ah @rinej would you mind sharing the before/after bundle size, for reference in the future? Thanks. No need to block merging but it would be good to know. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.3.36-0 🚀
|
|
@rinej This PR is failing because of a regression issue #84969 and issue #85018 The issue #84969 is reproducible in: Android Bug7100354_1773260886651.Screen_Recording_20260312_042709_Expensify.mp4The issue #85018 is reproducible in: Android and iOS Bug7100361_1773261296832.Screen_Recording_20260312_043339_Expensify.mp4 |
|
@Julesssss It looks like the Metro config introduced similar issues as before. Enabling experimental tree shaking seems to be the main reason for the regression, rather than the Expo Metro config cleanup as we initially expected With that in mind, it looks like we’re not able to successfully enable platform shaking right now Would you mind going with a revert? |
|
Revert here #85099 |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.36-10 🚀
|
Explanation of Change
Summary
What is NOT changed (vs reverted PR 80110)
getExpoDefaultConfig,expoConfig,mergeConfig), as it is used actively in the appFixed Issues
$ #80500
PROPOSAL:
Tests
Offline tests
QA Steps
Make sure that flows from those tickets are working properly:
Native share - Unexpected error appears in chat when sharing an image
Scan-PDF receipt is not displayed when opened for the first time
Tags - Import multi-level tags to workspace is failed
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari