-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: React project bundle size increased significantly since v5.3 #21917
Labels
package: react
@ionic/react package
Comments
Thanks, taking a look |
elylucas
added a commit
that referenced
this issue
Aug 17, 2020
13 tasks
elylucas
added a commit
that referenced
this issue
Aug 17, 2020
@elylucas thanks for the quick fix |
@Davidster Yep, and thanks for the bug! Good find. This will go out in the next release. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
Ionic version:
[ ] 4.x
[x] 5.x
Current behavior:
Thanks for this great framework! It has been extremely useful for my team and I.
I noticed this issue after upgrading my app via
yarn upgrade-interactive
. Not sure if this was intended or accidental and I have no idea what is causing it, so I'm just going to write this up as a bug report whether or not it is truly a 'bug'. I'm on macOS Catalina v10.15.2 for what it's worth.When using an ionic react project created through the ionic cli (
ionic start myApp blank --type=react
), the bundle size is about 250KB larger after gzip in ionic framework v5.3.0+ vs v5.2.3. The following output + screenshot is taken from analyzing the bundle (npx source-map-explorer 'build/static/js/*.js'
) in the latest version of the framework:Expected behavior:
The expected bundle size is smaller, as it was in version 5.2.3:
Steps to reproduce:
Latest version (5.3.1 at the time of writing) yields Current behavior result.
Then revert to older version by modifying dependencies in package.json, and rebuild + analyze, yields Expected behavior result:
Other information:
I tried the above steps for the package versions listed on https://www.npmjs.com/package/@ionic/react, searching for the version where the 'bug' was introduced. From the looks of it, it was introduced some time between version
5.3.0-dev.202006121329.e968bd0
and5.3.0-dev.202006151602.7457fe2
as the issue was only present in the latter of these two subsequent versions.Ionic info:
5.3.1 ('bad'):
5.2.3 ('good'):
The text was updated successfully, but these errors were encountered: