mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
fix(slides): swiper is not required as dependency
This commit is contained in:
@ -287,7 +287,8 @@ export class Slides implements ComponentInterface {
|
||||
const finalOptions = this.normalizeOptions();
|
||||
|
||||
// init swiper core
|
||||
const { Swiper } = await import('./swiper/swiper');
|
||||
// @ts-ignore
|
||||
const { Swiper } = await import('./swiper/swiper.bundle.js');
|
||||
const swiper = new Swiper(this.el, finalOptions);
|
||||
this.didInit = true;
|
||||
this.readySwiper(swiper);
|
||||
|
Reference in New Issue
Block a user