# Non-imported files included in bundle

**URL:** <https://discuss.emberjs.com/t/non-imported-files-included-in-bundle/18159>\
**Category:** Build Issues\
**Created:** [August 24, 2020, 11:51am UTC](https://discuss.emberjs.com/t/non-imported-files-included-in-bundle/18159 "2020-08-24T11:51:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elysgaard](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/elysgaard/32/16554_2.png) [@elysgaard](https://discuss.emberjs.com/u/elysgaard)\
**Post date:** [August 24, 2020, 11:51am UTC](https://discuss.emberjs.com/t/non-imported-files-included-in-bundle/18159/1 "2020-08-24T11:51:44Z")

</div>

I’m working on an Ember project and I’ve been looking into reducing our production bundle size. We use `ember-auto-import` and `ember-cli-babel` in our setup.

I used `ember-cli-bundle-analyzer` and found that files that contain an export but **aren’t** imported anywhere is included in our bundle. I’ve haven’t been able to find much information about this issue, and I’m wondering now if this is just how `ember-cli` works or if it’s an issue with our setup. Any insight would be much appreciated.

---

<div class="post-metadata">

**Author:** ![dknutsen](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/dknutsen/32/16471_2.png) [@dknutsen](https://discuss.emberjs.com/u/dknutsen)\
**Post date:** [August 24, 2020, 2:20pm UTC](https://discuss.emberjs.com/t/non-imported-files-included-in-bundle/18159/2 "2020-08-24T14:20:21Z")

</div>

Are these files from ember addons or other packages? IIRC ember addons currently get bundled in their entirety, but ember-auto-import should be smarter about that for non ember packages? One of the driving motivators behind the [embroider](https://github.com/embroider-build/embroider) project (ember’s next gen build system) is to take advantage of great js ecosystem build tools like webpack so that it will support tree shaking (as well as other fun things like route based code splitting etc).
