# Tree shaking Stencil components

**URL:** <https://forum.ionicframework.com/t/tree-shaking-stencil-components/155974>\
**Category:** Stencil\
**Created:** [February 11, 2019, 2:10pm UTC](https://forum.ionicframework.com/t/tree-shaking-stencil-components/155974 "2019-02-11T14:10:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ollie-w](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ollie-w/32/124171_2.png) [@ollie-w](https://forum.ionicframework.com/u/ollie-w)\
**Post date:** [February 11, 2019, 2:10pm UTC](https://forum.ionicframework.com/t/tree-shaking-stencil-components/155974/1 "2019-02-11T14:10:41Z")

</div>

I have made some Stencil components using the stencil CLI `Pick a starter › component` option.  
I have imported my component library as `import 'lrs-components';` into an Ionic app.

I will be using the same component library on multiple websites and apps and they will not all use all of the components.

Is there a way to tree shake so that only the ones that are used get bundled?

Or am I better of creating a whole new repo for each different component?
