Closed
Description
I have this file as an entry for my Vue project.
/* src/index.js */
import Player from './components/player.vue';
export function install(Vue) {
Vue.component('vue-player', Player);
}
...
When I run
vue build src/index.js
and then run the output in the browser I can't access the Vue object, even though the warning from vue.runtime.common.js
indicates that the Vue object is present.
Nowhere in my project I don't import the Vue module, because I'm writing a plugin. So it's somehow unclear how vue.runtime.common.js
is present?
Morevoer, because vue.runtime.common.js
is present I expect that Vue object is defined on window
, but it isn't.
Please see the picture below for more info:
Can someone explain what is happening during the build process?
Metadata
Metadata
Assignees
Labels
No labels