Skip to content

Commit

Permalink
Merge pull request #306 from Oksydan/npm-depedencies-bumps
Browse files Browse the repository at this point in the history
Npm depedencies bumps
  • Loading branch information
Oksydan authored Oct 29, 2023
2 parents 97a15eb + 16db6f7 commit 240c54e
Show file tree
Hide file tree
Showing 8 changed files with 15,963 additions and 13,828 deletions.
2 changes: 1 addition & 1 deletion _dev/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.12.1
v20.8.1
2 changes: 2 additions & 0 deletions _dev/js/theme.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
import 'jquery'; // ONLY FOR CHUNK

import './theme/index';
37 changes: 20 additions & 17 deletions _dev/js/theme/components/sliders/SwiperSlider.js
Original file line number Diff line number Diff line change
@@ -1,59 +1,62 @@
import Swiper, {
Navigation, Pagination, Autoplay,
} from 'swiper';
import Swiper from 'swiper/core';

// WE HAVE TO IMPORT IT LIKE THIS, BECOUSE OF NOT WOKRING TREESHAKING
import Navigation from '@node_modules/swiper/modules/navigation.mjs';
import Pagination from '@node_modules/swiper/modules/pagination.mjs';
import Autoplay from '@node_modules/swiper/modules/autoplay.mjs';

import DynamicImportSwiperModule from './DynamicImportSwiperModule';

/* eslint-disable */
const dynamicModulesMap = {
thumbs: new DynamicImportSwiperModule(
() => [
import('@node_modules/swiper/modules/thumbs/thumbs.js'),
import('@node_modules/swiper/modules/thumbs.mjs'),
],
),
virtual: new DynamicImportSwiperModule(
() => [
import('@node_modules/swiper/modules/virtual/virtual.js'),
import('@node_modules/swiper/modules/virtual/virtual.scss'),
import('@node_modules/swiper/modules/virtual.mjs'),
import('@node_modules/swiper/modules/virtual.scss'),
],
),
keyboard: new DynamicImportSwiperModule(
() => [
import('@node_modules/swiper/modules/keyboard/keyboard.js'),
import('@node_modules/swiper/modules/keyboard.mjs'),
],
),
mousewheel: new DynamicImportSwiperModule(
() => [
import('@node_modules/swiper/modules/mousewheel/mousewheel.js'),
import('@node_modules/swiper/modules/mousewheel.mjs'),
],
),
scrollbar: new DynamicImportSwiperModule(
() => [
import('@node_modules/swiper/modules/scrollbar/scrollbar.js'),
import('@node_modules/swiper/modules/scrollbar/scrollbar.scss'),
import('@node_modules/swiper/modules/scrollbar.mjs'),
import('@node_modules/swiper/modules/scrollbar.scss'),
],
),
parallax: new DynamicImportSwiperModule(
() => [
import('@node_modules/swiper/modules/parallax/parallax.js'),
import('@node_modules/swiper/modules/parallax.mjs'),
],
),
zoom: new DynamicImportSwiperModule(
() => [
import('@node_modules/swiper/modules/zoom/zoom.js'),
import('@node_modules/swiper/modules/zoom/zoom.scss'),
import('@node_modules/swiper/modules/zoom.mjs'),
import('@node_modules/swiper/modules/zoom.scss'),
],
),
freeMode: new DynamicImportSwiperModule(
() => [
import('@node_modules/swiper/modules/free-mode/free-mode.js'),
import('@node_modules/swiper/modules/free-mode/free-mode.scss'),
import('@node_modules/swiper/modules/free-mode.mjs'),
import('@node_modules/swiper/modules/free-mode.scss'),
],
),
controller: new DynamicImportSwiperModule(
() => [
import('@node_modules/swiper/modules/controller/controller.js'),
import('@node_modules/swiper/modules/controller/controller.scss'),
import('@node_modules/swiper/modules/controller.mjs'),
import('@node_modules/swiper/modules/controller.scss'),
],
),
};
Expand Down
Loading

0 comments on commit 240c54e

Please sign in to comment.