-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Investigate Webpack bundle size discrepancy #8356
Comments
A table of curious sizes:
|
@ara4n pointed out that Develop doesn't minify builds, so I guess that explains the largest difference here. I'll keep this open to do a bit more digging on bundle size. |
I built a tool to help you analyze webpack bundles for size regressions, and report them directly to GitHub PRs. It's free for open source, so it might be worth checking out and helpful in this scenario. |
The bundles continue to grow:
Local |
There's also #2498 as a historical similar issue, but that one sort of proscribes a particular change to make as well. Over here, I'd just like to know more about why things are so large, and review a variety of possible changes we might make. |
I think this is because of differences in how we embed the original source when generating sourcemaps. This might be clearer after I cleaned up how this is decided in reaction to develop's bundle being so large that sentry wouldn't take the upload. |
Now:
Okay, I don't know why the local build is smaller than the size of prod .. it should be the same. |
On my local machine, running
yarn build
inriot-web
produces a 4.6 MBbundle.js
file. However, the official build for develop comes up with a 14 MBbundle.js
file.Why are they so different?
The text was updated successfully, but these errors were encountered: