Skip to content

Commit

Permalink
Modify import/export paths to get Svelte builds to work
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkor committed Dec 17, 2020
1 parent dbc659e commit 0984204
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
node_modules
build/**/*.*
!build/core/package.json
!build/swiper.esm.js
!build/esm/**/*.*
!build/bundle/package.json
!build/react/package.json
!build/svelte/package.json
Expand Down
2 changes: 1 addition & 1 deletion src/core/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint-disable-next-line
export { default } from '../../build/core';
export { default } from '../../build/swiper.esm.js';
// needed here for Angular
2 changes: 1 addition & 1 deletion src/svelte/get-params.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line
import Swiper from '../../core';
import Swiper from '../core';
import { isObject, extend } from './utils';
import { paramsList } from './params-list';

Expand Down
2 changes: 1 addition & 1 deletion src/svelte/init-swiper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line
import Swiper from '../../core';
import Swiper from '../core';
import { needsNavigation, needsPagination, needsScrollbar } from './utils';

function initSwiper({ el, nextEl, prevEl, paginationEl, scrollbarEl }, swiperParams) {
Expand Down

0 comments on commit 0984204

Please sign in to comment.