# Ionic standalone causes an increase in initial bundle size

**URL:** <https://forum.ionicframework.com/t/ionic-standalone-causes-an-increase-in-initial-bundle-size/243870>\
**Category:** Ionic Angular\
**Created:** [August 27, 2024, 10:30am UTC](https://forum.ionicframework.com/t/ionic-standalone-causes-an-increase-in-initial-bundle-size/243870 "2024-08-27T10:30:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Delvin](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@Delvin](https://forum.ionicframework.com/u/Delvin)\
**Post date:** [August 27, 2024, 10:30am UTC](https://forum.ionicframework.com/t/ionic-standalone-causes-an-increase-in-initial-bundle-size/243870/1 "2024-08-27T10:30:56Z")

</div>

I have a problem with my app intial bundle size which increasing to 1.8MB [uncompressed]. And when I tried to use source-map-explorer, I found that the culprit is from Ionic modules. I’ve followed the documentation that only used import from @ionic/angular/standalone and not from somewhere else. But still I got this whooping 1MB chunk for Ionic alone

I used angular 18.2 with Ionic 8.2.7. I used standalone angular component and standalone Ionic.

My build configuration

```auto
"configurations": {
  "production": {
    "budgets": [
      {
        "type": "initial",
        "maximumWarning": "500kB",
        "maximumError": "5MB"
      },
      {
        "type": "anyComponentStyle",
        "maximumWarning": "2kB",
        "maximumError": "4kB"
      }
    ],
    "outputHashing": "all",
    "sourceMap": true,
    "namedChunks": true,
    "serviceWorker": "ngsw-config.json"
  },
  "development": {
    "optimization": false,
    "extractLicenses": false,
    "sourceMap": true
  }
}

```

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/6/f/6f74eeeafb0904578a9cb161e8baff332424950f.png)  
 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/6/1/614e54af63117dceca35553f3729891c02df0ab7.png)

Thanks

---

<div class="post-metadata">

**Author:** ![TitusJonas](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@TitusJonas](https://forum.ionicframework.com/u/TitusJonas)\
**Post date:** [December 18, 2024, 1:03pm UTC](https://forum.ionicframework.com/t/ionic-standalone-causes-an-increase-in-initial-bundle-size/243870/2 "2024-12-18T13:03:08Z")

</div>

Hey, I’m having the exact same problem ([Ionic Standalone & ESBuild increase in initial bundle size. Lazy loaded components included in initial Bundle](https://forum.ionicframework.com/t/ionic-standalone-esbuild-increase-in-initial-bundle-size-lazy-loaded-components-included-in-initial-bundle/245661)).

**Did you find a solution?**  
Im thinking about just going back to the module based imports.
