I'm generating multiple (20+) async web components with Vue from a single repository with Vue CLI's target wc-async:
vue-cli-service build --report --target wc-async --inline-vue --name openeo \"./components/*.vue\"
I have a "utils.js" that is imported into all of the web components. Looking at the report generated by Vue CLI, the utils.js (plus all imports in the utils.js) are bundled with every web component, so I have 20+ times some kilobytes overhead, which I'd put into the "entry" bundle (openeo.js). Is there a way to achieve this? For Vue there's the --inline-vue flag in the CLI, but it's not clear how to handle other dependencies in the same way.
I've looked through the Vue + WebPack documentation, even in the code itself where the entry-wc.js is generated, but couldn't find an entry point or a setting that is not somehow overridden by Vue CLI.
tl;dr: How to put common files across multiple async web components with Vue (CLI) into the entry file of the package?