Using web components built with StencilJS in a gulp project

I’m working on a rather old project that uses gulp to bundle js-files. We use jQuery and other stuff. It is not a SPA or framework-driven application.

Now we are building a simple web component library with StencilJS to be able to serve styled components to external clients. However, we would like to be able to use them in our own projects as well.

I have tried a bunch of stuff (and we are looking into hosting the files on a CDN), but I am right now trying to figure out if there is a way to make my Stencil project output a single js-file that can be gulped in our legacy project.

Is that possible?