Replies: 1 comment
-
Spent a few hours on this… I found a semi-solution with a Webpack setup: You can add (as seen here: webpack/webpack#5756 (comment)) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using Splide in a JavaScript project that's bundled (either vanilla, but especially with react-splide and vue-splide), the bundler (webpack, parcel, rollup) prefers to use the JavaScript file specified in
"module"
over the one specified in"main"
inpackage.json
. This leads to a bundled file that's incompatible with browsers which don't support ES6 syntax, e.g. Internet Explorer 11.AFAIK the solution for this would be to add another entry called
"browser"
topackage.json
, which points to the same file as"main"
.Beta Was this translation helpful? Give feedback.
All reactions