0👍
✅
You could use at the same way, but getting your specific component:
export default {
components: {
SweetModal: () => import('sweet-modal-vue').then(m => m.SweetModal)
}
}
I recommend you to read this: Async Vue.js Component
Source:stackexchange.com