diff --git a/index.js b/index.js index a0de192..f7aafa9 100644 --- a/index.js +++ b/index.js @@ -97,7 +97,7 @@ const show = async (duration = 500, easing = 'linear') => { }; const init = async (items = [], options = {}, index = 0) => { - const {Swiper, Navigation, Pagination} = import('swiper'); + const {Swiper, Navigation, Pagination} = await import('swiper'); Swiper.use([Navigation, Pagination]); let isVideoInGallery = false;