Skip to content

bug: [7.5] standalone build size is bigger than standard version #28358

Description

@hatsantos

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

When converted to a standalone components app, using Ionic standalone components, the app build size is not smaller as announced in the blog post.

Using a sample Ionic app from the CLI, such as "sidemenu," after converting it to standalone components (following the guide: https://ionicframework.com/docs/angular/build-options#migrating-from-modules-to-standalone), the initial app size is larger than the module version.

Ionic "sidemenu" sample app and updated to Ionic 7.5 and Ionicons 7.2.1

ionic build --prod

image

Ionic "sidemenu" sample app updated to Ionic 7.5 and Ionicons 7.2.1 and migrated to standalone components

ionic build --prod

image

Am i doing something wrong?

The migration effort is still high, and in doing so, I would like to ensure that it's worth it and that I'm doing it the right way.

Expected Behavior

Initial bundle size to be smaller.

Steps to Reproduce

  1. ionic start > angular > standalone > sidemenu
  2. build a prod app
  3. update to standalone version of ionic components
  4. build a prod app

Code Reproduction URL

https://hatsbytes@bitbucket.org/hatslab/ionstandalone.git

Ionic Info

Ionic:

Ionic CLI : 7.1.1 (C:\Users\username\AppData\Local\pnpm\global\5.pnpm@ionic+cli@7.1.1\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 7.5.0
@angular-devkit/build-angular : 16.2.6
@angular-devkit/schematics : 16.2.6
@angular/cli : 16.2.6
@ionic/angular-toolkit : 9.0.0

Capacitor:

Capacitor CLI : 5.5.0
@capacitor/android : not installed
@capacitor/core : 5.5.0
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 1.7.3

System:

NodeJS : v20.8.1 (C:\Program Files\nodejs\node.exe)
npm : 10.1.0
OS : Windows 10

Additional Information

Code Reproduction URL has a standalone ionic component converted app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: externalBugs in non-Ionic software that impact Ionic apps (I.e. WebKit, Angular, Android etc)package: angular@ionic/angular package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions