index.js 1.3 KB

1234567891011121314151617181920212223242526
  1. import Swiper from "./libs/core.js";
  2. import Autoplay from './modules/autoplay/autoplay.js';
  3. import FreeMode from './modules/free-mode/free-mode.js';
  4. import EffectFade from './modules/effect-fade/effect-fade.js';
  5. import EffectCube from './modules/effect-cube/effect-cube.js';
  6. import EffectCoverflow from './modules/effect-coverflow/effect-coverflow.js';
  7. import EffectFlip from './modules/effect-flip/effect-flip.js';
  8. import EffectCards from './modules/effect-cards/effect-cards.js';
  9. import EffectCreative from './modules/effect-creative/effect-creative.js';
  10. import EffectPanorama from './modules/effect-panorama/effect-panorama.js';
  11. import EffectCarousel from './modules/effect-carousel/effect-carousel.js';
  12. import Navigation from './modules/navigation/navigation.js';
  13. import Pagination from './modules/pagination/pagination.js';
  14. import Thumbs from './modules/thumbs/thumbs.js';
  15. import Scrollbar from './modules/scrollbar/scrollbar.js';
  16. import Virtual from './modules/virtual/virtual.js';
  17. import WillChange from './modules/will-change/will-change.js';
  18. export {
  19. default as Swiper,
  20. default
  21. }
  22. from './libs/core.js';
  23. const modules = [Autoplay, FreeMode, EffectFade, EffectCube, EffectCoverflow, EffectFlip, EffectCards, EffectCreative,
  24. EffectPanorama, EffectCarousel, Navigation, Pagination, Thumbs, Scrollbar, WillChange, Virtual
  25. ];
  26. Swiper.use(modules);