core-player / vue-core-video-player

🍟 A Lightweight Video Player For Vue.js.
https://core-player.github.io/vue-core-video-player/
464 stars 79 forks source link

Provide an option to load component asynchronously #52

Open jd1378 opened 3 years ago

jd1378 commented 3 years ago

Currently we can only use this component when using as a vue plugin Since the component is not exported, we cannot do something like this:

const getComponent = () => import('vue-core-video-player');
Vue.component('vue-core-video-player', getComponent );

Or did I misunderstood this and it can be done?