Repository navigation
Speed up webpack build and rebuild times - #12160
Conversation
|
Without Changes
With changes
I'm on an Intel laptop still, can't wait to upgrade! Very nice improvement 👍 |
|
|
@Julesssss looks like this was merged without the checklist test passing. Please add a note explaining why this was done and remove the |
|
No it wasn't. Stupid bot |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
| // @react-navigation for web uses the legacy modules (related to react-native-reanimated) | ||
| // This results in 33 warnings with stack traces that appear during build and each time we make a change | ||
| // We can't do anything about the warnings, and they only get in the way, so we suppress them | ||
| './node_modules/@react-navigation/drawer/lib/module/views/legacy/Drawer.js', |
There was a problem hiding this comment.
Not sure we should suppress these. Yes they're annoying but if we suppress them we won't remember to upgrade and fix them. We also won't notice when they're gone and thus will never think to remove this code (which will be zombie code by then)
There was a problem hiding this comment.
@react-navigation for web uses the legacy modules
Is this likely to change? The logs add a bunch of unactionable junk to the output which makes it more difficult to parse the output. But I get the point about hiding this permanently, so I'm happy to add them back.
There was a problem hiding this comment.
I'm not sure how such problem are managed here
On other projects we'll capture an outstanding "to-do" ticket linking to commit/lines of code as a reminder
I see your point, I can revert the change in my next PR on webpack config.
Maybe there's a way to log this crap just once, instead for every change made, so many warnings just make a habit of ignoring output altogether...
|
Hey, I noticed you changed some webpack configuration files. This can break production builds. Did you remember to run a production build locally to verify they still work? |
|
🚀 Deployed to staging by @Julesssss in version: 1.2.22-0 🚀
|
|
🚀 Deployed to production by @Julesssss in version: 1.2.22-3 🚀
|





Details
Update webpack configuration to speed up bundling
Removing
eslint-loaderhalves the build time: #11724 (comment)Adding FS cache boost
npm run webandnpm run desktopnext usageFixed Issues
$ #11724
PROPOSAL: N/A
Tests
npm run webnpm run desktopnpm run build&npm run build-stagingnpm run desktop-build&npm run desktop-build-stagingnpm run webon themainbranch and check the output forwebpack 5.74.0 compiled successfully in .... msnpm run webfrom this PR and check the same - now you see the effects of removingeslint-loadernpm run webagain - now you see the effects of cacheQA Steps
PR Review Checklist
PR Author Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)Screenshots
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android