Exclude ionic components from built files


I use stencil to create a components lib. Many of my components use ionic components like ion-input, etc…

The problem is that the built files include many (or even all) ionic components.

When I use my “lib” in an existing app (Ionic 4 + Angular) I get an error tab with id "undefined" does not exist because the IonTabs used is the one bundled with my components lib.

Is there a way to exclude ionic components from stencil output, so the main app takes care of loading ionic components ?