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

Webpack-bundled Swiper breaks in IE11 #2670

Closed
1 of 3 tasks
Kurzdor opened this issue Jun 11, 2018 · 0 comments
Closed
1 of 3 tasks

Webpack-bundled Swiper breaks in IE11 #2670

Kurzdor opened this issue Jun 11, 2018 · 0 comments

Comments

@Kurzdor
Copy link

Kurzdor commented Jun 11, 2018

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • Swiper Version: 4.3.3

  • Platform/Target and Browser Versions: All Platforms, with >= 0.25% usage browsers and Safari >= 6

  • Live Link or JSFiddle/Codepen or website with issue: *

What you did

I am using Swiper in my project which has Gulp+Webpack+babel-loader underhood. (Importing it like ES6 module).
Webpack config is here: https://pastebin.com/zT7N1vpW

As you see I have excluded the node_modules folder from transpiling modules as it is recommended here: facebook/create-react-app#1125.

And I get syntax errors in IE11 for Swiper's dependency, Dom7.
For example: https://imgur.com/a/NAgJSuB

If i include dom7 folder in node_modules it gives me another error with Swiper:
https://imgur.com/a/Qokhxki

The same issue was in other package here:
selfrefactor/rambdax#4
and here
selfrefactor/rambda#52

When I remove exclude: /node_modules/ line it doesn't break anymore but takes long time to build.

Expected Behavior

Webpack-bundled Swiper works good and without any troubles in IE11.

Actual Behavior

Webpack-bundled Swiper works good in IE11.

Thanks!

@Kurzdor Kurzdor closed this as completed Jun 11, 2018
@lock lock bot added the outdated label Feb 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Feb 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant