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
bug: bundle size increase with IonicModule and lazy loaded web components in v8.0.1 #29393
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.0.1
Current Behavior
Some extra modules seem to have been included in man JS chunk which results in drastically higher bundle size. This happened just by updating Ionic from 8.0.0 to 8.0.1 without any code changes. My project is not converted to Ionic Standalone components yet.
initial chunk files after a prod build (8.0.1):
webpack bundle analysis (the outlined module with red is the extra stuff that we never had before)
Expected Behavior
Main JS chunk size to remain the same or at least with a minimal impact
initial chunk files after a prod build (8.0.0):
webpack bundle analysis
Steps to Reproduce
Initialize a brand new project with the CLI by selecting Angular and Modules (instead of standalone Ionic components) as a framework and use v8.0.0 (manually pin down the ionic version to 8.0.0 if necessary).
Do a production build with ionic build --prod and check out the size of the output main.js file
changed the title [-]bug: [Angular] main JS chunk size drastically increased after updating from v8.0.0 to v8.0.1[/-][+]bug: [Angular] main JS chunk size suddenly increased by ~30% after updating from v8.0.0 to v8.0.1[/+]on Apr 24, 2024
Hello @StefanNedelchev, I am unable to reproduce your described issue with a new starter and comparing the compiled bundle output between v8.0.0 and v8.0.1.
v8.0.0
v8.0.1
Can you please review your reproduction steps and provide a reproduction that can reproduce the issue?
changed the title [-]bug: [Angular] main JS chunk size suddenly increased by ~30% after updating from v8.0.0 to v8.0.1[/-][+]bug: [Angular][IonicModule] main JS chunk size suddenly increased by ~30% after updating from v8.0.0 to v8.0.1[/+]on Apr 24, 2024
Hello @StefanNedelchev, I am unable to reproduce your described issue with a new starter and comparing the compiled bundle output between v8.0.0 and v8.0.1.
v8.0.0 v8.0.1
Can you please review your reproduction steps and provide a reproduction that can reproduce the issue?
Thanks!
@sean-perkins Thanks for the response. You are right, there seems to be one key thing that I didn't (know is important to) mention - the project uses IonicModule instead of standalone Ionic components. I updated the description and steps to reproduce by addressing this detail. BTW here's how it is on a clean Ionic Side Menu project with IoncModule
changed the title [-]bug: [Angular][IonicModule] main JS chunk size suddenly increased by ~30% after updating from v8.0.0 to v8.0.1[/-][+]bug: [Angular][IonicModule] main JS chunk size drastically increased after updating from v8.0.0 to v8.0.1[/+]on Apr 24, 2024
Thanks @StefanNedelchev I am able to reproduce with the lazy loaded web components (IonicModule). I've narrowed this to a recent dependency bump to v4.17.0 of Stencil.
I'm working with the Stencil team to root cause the changes causing this and work towards a fix.
changed the title [-]bug: [Angular][IonicModule] main JS chunk size drastically increased after updating from v8.0.0 to v8.0.1[/-][+]bug: bundle size increase with IonicModule and lazy loaded web components in v8.0.1[/+]on Apr 24, 2024
@sean-perkins thanks for the quick reaction and thanks for still supporting IonicModule because unfortunately some users like me will keep using it until #28574 gets resolved.
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.
Activity
[-]bug: [Angular] main JS chunk size drastically increased after updating from v8.0.0 to v8.0.1[/-][+]bug: [Angular] main JS chunk size suddenly increased by ~30% after updating from v8.0.0 to v8.0.1[/+]sean-perkins commentedon Apr 24, 2024
Hello @StefanNedelchev, I am unable to reproduce your described issue with a new starter and comparing the compiled bundle output between v8.0.0 and v8.0.1.
Can you please review your reproduction steps and provide a reproduction that can reproduce the issue?
Thanks!
[-]bug: [Angular] main JS chunk size suddenly increased by ~30% after updating from v8.0.0 to v8.0.1[/-][+]bug: [Angular][IonicModule] main JS chunk size suddenly increased by ~30% after updating from v8.0.0 to v8.0.1[/+]StefanNedelchev commentedon Apr 24, 2024
@sean-perkins Thanks for the response. You are right, there seems to be one key thing that I didn't (know is important to) mention - the project uses IonicModule instead of standalone Ionic components. I updated the description and steps to reproduce by addressing this detail. BTW here's how it is on a clean Ionic Side Menu project with IoncModule
8.0.0

8.0.1

[-]bug: [Angular][IonicModule] main JS chunk size suddenly increased by ~30% after updating from v8.0.0 to v8.0.1[/-][+]bug: [Angular][IonicModule] main JS chunk size drastically increased after updating from v8.0.0 to v8.0.1[/+]sean-perkins commentedon Apr 24, 2024
Thanks @StefanNedelchev I am able to reproduce with the lazy loaded web components (
IonicModule). I've narrowed this to a recent dependency bump to v4.17.0 of Stencil.I'm working with the Stencil team to root cause the changes causing this and work towards a fix.
[-]bug: [Angular][IonicModule] main JS chunk size drastically increased after updating from v8.0.0 to v8.0.1[/-][+]bug: bundle size increase with IonicModule and lazy loaded web components in v8.0.1[/+]StefanNedelchev commentedon Apr 24, 2024
@sean-perkins thanks for the quick reaction and thanks for still supporting IonicModule because unfortunately some users like me will keep using it until #28574 gets resolved.
chore(deps): upgrade stencil to v4.17.2
chore(deps): upgrade stencil to v4.17.2 (#29416)
ionitron-bot commentedon May 29, 2024
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.