Ionic Dependency in Stencil

I’m currently creating a Stencil Project for me to create Components, i often use in different apps and always have to Copy/Paste. These work with Ionic and use Stuff from @ionic/core, thats why i added it to the devDependencies and import it from some classes.

Now, when i build the Core Module, the dist Folder includes a node_modules Folder with @ionic/core and ionicons. These caused that in the Angular proxies File all Ionic Components are included again and not only my new generate ones.

Anyone have a Solution for that? I don’t want @ionic/core to be added to the dist, as these components only work in an ionic project anyway.