File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
js/theme/components/sliders Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- import Swiper from 'swiper' ;
2
- import { Navigation , Pagination , Autoplay } from 'swiper/modules' ;
1
+ import Swiper from 'swiper/core' ;
2
+
3
+ // WE HAVE TO IMPORT IT LIKE THIS, BECOUSE OF NOT WOKRING TREESHAKING
4
+ import Navigation from '@node_modules/swiper/modules/navigation.mjs' ;
5
+ import Pagination from '@node_modules/swiper/modules/pagination.mjs' ;
6
+ import Autoplay from '@node_modules/swiper/modules/autoplay.mjs' ;
3
7
4
8
import DynamicImportSwiperModule from './DynamicImportSwiperModule' ;
5
9
Original file line number Diff line number Diff line change @@ -92,10 +92,6 @@ exports.extractScss = ({mode = 'production'}) => ({
92
92
exports . extractJs = ( ) => ( {
93
93
module : {
94
94
rules : [
95
- {
96
- test : / s w i p e r \. e s m \. j s / ,
97
- sideEffects : false
98
- } ,
99
95
{
100
96
test : / \. j s $ / ,
101
97
exclude : / ( n o d e _ m o d u l e s ) / ,
You can’t perform that action at this time.
0 commit comments