Skip to content

Commit

Permalink
perf(swiper): only import needed components (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
domtra authored Oct 19, 2020
1 parent ad4e416 commit ff82ebd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Components/SliderImages/script.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import $ from 'jquery'
import 'core-js/es/number'
import Swiper from 'swiper/bundle'
import Swiper, { Navigation, A11y, Autoplay } from 'swiper/swiper.esm'
import 'swiper/swiper-bundle.css'

Swiper.use([Navigation, A11y, Autoplay])

class SliderImages extends window.HTMLDivElement {
constructor (...args) {
const self = super(...args)
Expand Down

0 comments on commit ff82ebd

Please sign in to comment.