Bundling component/app to a web-component and specifying Vue constructor parameters #10206
Unanswered
pstatham-exp
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an instance where I would like to bundle an .vue SFC to a web component using the Vue CLI instructions.
However, one of the components in the app has a reference to
this.$root.$foobar
and because the entry to the bundle isApp.vue
and notmain.js
where thenew Vue({ foobar})
object is instantiated,$foobar
will remain undefined.Is there a place in the vue.config.js where this can be accomplished or can I do something in the structure of an SFC to define the parameters to be used with the Vue instance when created a web component?
Beta Was this translation helpful? Give feedback.
All reactions