rename folder to make it work for Swiper 5.x (#39968)

This commit is contained in:
Asher Nguyen 2019-10-31 04:24:18 +11:00 committed by Jesse Trinity
parent bb846d4225
commit 20d3870dc8
4 changed files with 5 additions and 5 deletions

View File

@ -1126,7 +1126,7 @@ import {
EffectCube,
EffectFlip,
EffectCoverflow
} from './dist/js/swiper.esm';
} from './js/swiper.esm';
/**
* Core module

View File

@ -1,9 +1,9 @@
import Swiper, { DOM7Element } from '../../index';
import Swiper, { DOM7Element } from '../index';
// Reexport everything from `swiper` except the default export of the
// `Swiper` class, which is instead provided as a named export by
// `swiper.esm`.
export * from '../../index';
export * from '../index';
export { Swiper };
/*

View File

@ -4,7 +4,7 @@
* @author Eugene Matseruk
*/
import Swiper from 'swiper';
import { Swiper as SwiperESM, Navigation, History } from 'swiper/dist/js/swiper.esm';
import { Swiper as SwiperESM, Navigation, History } from 'swiper/js/swiper.esm';
const containerSelector = '.swiper-container';

View File

@ -19,7 +19,7 @@
},
"files": [
"index.d.ts",
"dist/js/swiper.esm.d.ts",
"js/swiper.esm.d.ts",
"swiper-tests.ts"
]
}