Build ionic vue app as library to be used in a website

Hi there, is there a way to build an ionic vue app as a library so it can be injected in an existing website? I can get the vue app built as a library by running yarn build which is defined as

"build": "vue-cli-service build --target lib --formats=umd --name helloWorld src/main.ts"

However when I import the generated library into the existing website I can see vue finds the target div and injects the ion-app and ion-router tags but they have nothing inside. I have the feeling that running yarn build doesn’t include any ionic references and that’s why it’s not working. Any ideas?

Thanks