JetBrains/svg-mixer

Including the src directory in build products results in IE11 syntax error

Closed this issue · 3 comments

Including es2015 javascript files in the src directory as part of the build products results in IE11 syntax error when everything is compiled by babel due to use of 'class'. If this is removed then everything works fine in IE11

I did't get, please explain what you're doing and what you expect

Running our application which includes svg-baker-runtime works fine in Chrome and Edge, but if you run it in IE11 it gets a syntax error due to the use of 'class' in the svg-baker-runtime files found in the src directory. In order to get our application running properly in IE11, I've had to change our webpack build to exclude svg-baker-runtime/src directory from our build as it uses newer javascript than IE11 supports. Also, if I manually remove that directory before building our application then it runs fine on all three browsers as well. This is just a recommendation that you could probably remove the src directory from your build products and it would be more widely compatible by avoiding this issue. Hope that clarifies things.

Ah, I get it. Thanks.