chore(): use defineCustomElements exclude (#16647)

This commit is contained in:
Manu MA
2018-12-09 18:45:50 +01:00
committed by GitHub
parent 0e09ed6065
commit a9247ce0e9
2 changed files with 5 additions and 101 deletions

View File

@ -1,4 +1,4 @@
import * as c from '@ionic/core/loader'; import { defineCustomElements } from '@ionic/core/loader';
import { Config } from './providers/config'; import { Config } from './providers/config';
import { IonicWindow } from './types/interfaces'; import { IonicWindow } from './types/interfaces';
@ -31,105 +31,9 @@ export function appInitialize(config: Config) {
elm.removeEventListener(eventName, cb, opts); elm.removeEventListener(eventName, cb, opts);
} }
}; };
defineCustomElements(win, {
c.defineCustomElement(win, [ exclude: ['ion-tabs', 'ion-tab']
c.IonActionSheet, });
c.IonActionSheetController,
c.IonAlert,
c.IonAlertController,
c.IonAnchor,
c.IonAnimationController,
c.IonApp,
c.IonAvatar,
c.IonBackButton,
c.IonBackdrop,
c.IonBadge,
c.IonButton,
c.IonButtons,
c.IonCard,
c.IonCardContent,
c.IonCardHeader,
c.IonCardSubtitle,
c.IonCardTitle,
c.IonCheckbox,
c.IonChip,
c.IonCol,
c.IonContent,
c.IonDatetime,
c.IonFab,
c.IonFabButton,
c.IonFabList,
c.IonFooter,
c.IonGrid,
c.IonHeader,
c.IonIcon,
c.IonImg,
c.IonInfiniteScroll,
c.IonInfiniteScrollContent,
c.IonInput,
c.IonItem,
c.IonItemDivider,
c.IonItemGroup,
c.IonItemOption,
c.IonItemOptions,
c.IonItemSliding,
c.IonLabel,
c.IonList,
c.IonListHeader,
c.IonLoading,
c.IonLoadingController,
c.IonMenu,
c.IonMenuButton,
c.IonMenuController,
c.IonMenuToggle,
c.IonModal,
c.IonModalController,
c.IonNav,
c.IonNavPop,
c.IonNavPush,
c.IonNavSetRoot,
c.IonNote,
c.IonPicker,
c.IonPickerColumn,
c.IonPickerController,
c.IonPopover,
c.IonPopoverController,
c.IonRadio,
c.IonRadioGroup,
c.IonRange,
c.IonRefresher,
c.IonRefresherContent,
c.IonReorder,
c.IonReorderGroup,
c.IonRippleEffect,
c.IonRoute,
c.IonRouteRedirect,
c.IonRouter,
c.IonRouterOutlet,
c.IonRow,
c.IonSearchbar,
c.IonSegment,
c.IonSegmentButton,
c.IonSelect,
c.IonSelectOption,
c.IonSelectPopover,
c.IonSkeletonText,
c.IonSlide,
c.IonSlides,
c.IonSpinner,
c.IonSplitPane,
c.IonTabBar,
c.IonTabButton,
c.IonText,
c.IonTextarea,
c.IonThumbnail,
c.IonTitle,
c.IonToast,
c.IonToastController,
c.IonToggle,
c.IonToolbar,
c.IonVirtualScroll
]);
} }
}; };
} }

View File

@ -29,7 +29,7 @@
"ionicons": "4.4.8" "ionicons": "4.4.8"
}, },
"devDependencies": { "devDependencies": {
"@stencil/core": "0.16.1-3", "@stencil/core": "0.16.1-4",
"@stencil/sass": "0.1.1", "@stencil/sass": "0.1.1",
"@stencil/utils": "latest", "@stencil/utils": "latest",
"@types/jest": "^23.3.1", "@types/jest": "^23.3.1",