I understand how to dynamically load components asynchronously in Vue. For example, instead of importing MyComponent directly:
import MyComponent from '@/components/MyComponent'
export default {
components: {
MyComponent
}
}
We can use dynamic import like so:
export default {
components: {
MyComponent: () => import('@/components/MyComponent')
}
}
But what about named component imports, like SweetModal?
import { SweetModal } from 'sweet-modal-vue'
export default {
components: {
SweetModal
}
}
Is it possible to import them asynchronously as well?