You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-10-17] Remove Dev Dependencies from Production Bundle #71215
Proposal: Remove Dev Dependencies from Production Bundle
Background
Our production application currently consists of 44 bundles containing 4,187 modules. Analysis reveals that 5 development dependencies are inadvertently being included in production bundles that are served to users.
Problem
When our build process runs, if development dependencies get included in production bundles, then users download unnecessary code that increases load times and wastes bandwidth.
Solution
Remove the 5 development dependencies from production bundles by:
implementing MiniCssExtractPlugin for CSS handling
configuring IgnorePlugin to exclude modules only used in development
cleaning up package.json dependency classifications
setting up the proper version of React compiler for production builds
This will reduce our bundle count from 44 to 43, decrease total modules from 4,187 to 4,128, and reduce bundle size by 120kb. The following libraries will no longer be reported in production bundles:
css-loader
style-loader
react-is
react-compiler-runtime
@babel/runtime (moved from dev to normal dependencies to align with official documentation)
This results in slightly faster load times and reduced bandwidth costs.
changed the title [-]Remove Dev Dependencies from Production Bundle[/-][+][Due for payment 2025-10-17] Remove Dev Dependencies from Production Bundle[/+]on Oct 10, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.28-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@jayeshmangwani@RachCHopkins The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Activity
roryabraham commentedon Sep 24, 2025
Created this but didn't mark it as a bug because I don't think we'll really need C+ review here
melvin-bot commentedon Sep 25, 2025
Triggered auto assignment to @mountiny, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
roryabraham commentedon Sep 26, 2025
First attempt was reverted. Context in #71350
36 remaining items
[-]Remove Dev Dependencies from Production Bundle[/-][+][Due for payment 2025-10-17] Remove Dev Dependencies from Production Bundle[/+]melvin-bot commentedon Oct 10, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.28-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2025-10-17. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Oct 10, 2025
@jayeshmangwani @RachCHopkins The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
melvin-bot commentedon Oct 17, 2025
Payment Summary
Upwork Job
BugZero Checklist (@RachCHopkins)
jayeshmangwani commentedon Oct 17, 2025
No checklist needed , this was a dev improvement
RachCHopkins commentedon Oct 20, 2025
@roryabraham are there any pricetag adjustments due to those original reverted PRs?
roryabraham commentedon Oct 20, 2025
I don't think so, no
RachCHopkins commentedon Oct 21, 2025
In that case, the payment summary is correct.
No jobs to close or contacts to complete in Upwork.
🟢 to @jayeshmangwani to request $250 via NewDot Manual Request.
twisterdotcom commentedon Oct 28, 2025
@jayeshmangwani has submitted payment for this report on ND here.
SO: https://stackoverflowteams.com/c/expensify/questions/7582
Zapier Logs
Run ID: 00040eee-6b4c-af2a-a916-bace5bf1df01