Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix running with Snowpack #4351

Merged
merged 1 commit into from Mar 22, 2021
Merged

Fix running with Snowpack #4351

merged 1 commit into from Mar 22, 2021

Conversation

Filyus
Copy link

@Filyus Filyus commented Mar 18, 2021

These two small changes are the result of one hard day of work as a programmer with 19 years of experience trying to make Swiper work with Svelte and Snowpack.

  1. peerDependencies is needed to avoid a second Svelte instance that almost completely stops Swiper from working.
    There redundant^ in the PR, you can remove it like this: "svelte": "3.x", but everything works with it too.
  2. export const __esModule = true; in swiper.esm.js is needed because of double .default attribute bug.
    I'm tried to describe it here: No 'exports.__esModule = true;' inside of generated cjs files #4297, there same problem, but that commit didn't solve it completely.

@nolimits4web nolimits4web merged commit b2d60e7 into nolimits4web:master Mar 22, 2021
@nolimits4web
Copy link
Owner

Merged, thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants