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

Ionic "sidemenu" sample app updated to Ionic 7.5 and Ionicons 7.2.1 and migrated to standalone components
ionic build --prod

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
- ionic start > angular > standalone > sidemenu
- build a prod app
- update to standalone version of ionic components
- 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.
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 "sidemenu" sample app updated to Ionic 7.5 and Ionicons 7.2.1 and migrated to standalone components
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
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.