I'm building a Ionic-Vue 5 mobile app and I'm finding myself import a lot of vue components just to use them into my views:
import {
IonPage,
IonHeader,
IonToolbar,
IonTitle,
IonContent,
IonInput,
IonButton,
IonAlert,
IonList,
IonItem,
IonCard,
IonCardContent,
IonCardHeader,
IonCardSubtitle,
IonLabel,
IonSpinner
} from "@ionic/vue";
export default defineComponent({
components: {
IonHeader,
IonToolbar,
IonTitle,
IonContent,
IonPage,
IonInput,
IonButton,
IonAlert,
IonList,
IonItem,
IonCard,
IonCardContent,
IonCardHeader,
IonCardSubtitle,
IonLabel,
IonSpinner
},
I know this could be useful from a performance point of view, but there is a way to just import all ionic components at once when the list is big enough to justify a little performance loss in order to greatly simplify the code?