I'm building a component library based on Vuetify.
Vuetify installation tells people to add this line
new Vue({
vuetify,
render: h => h(App)
}).$mount('#app')
However, I want people to be able to just import my component.
It looks like this
<template>
<HelloWorld />
</template>
<script>
import { HelloWorld } from "MyComponentLibrary";
export default {
components: {
HelloWorld,
},
};
</script>
Now, if this line of Vuetify is necessary...
new Vue({
vuetify,
});
I will have to make my component library API looks like this
import { reExportedVuetify } from "MyComponentLibrary";
new Vue({
vuetify: reExportedVuetify,
});
So, what does new Vue({ vuetify })
do?