I'm creating a Vue web component using vue-cli 3 and the --target wc
option. I also need the component to use the vue-i18n plugin, which requires some options to be passed to the main Vue instance like this:
new Vue({
i18n: new VueI18n({ ... ])
...
})
In a regular Vue app this is fine because I control construction of the main Vue instance. However, when building as a web component, the construction of the main Vue object is generated by vue-web-component-wrapper and I don't see any obvious way to affect it.
How can I use the vue-18n plugin in my web component?