mapbox-gl-draw
mapbox-gl-draw copied to clipboard
Code not transpiled for IE11
It is important for our customer that our application works in IE11 (and others as well), however this plugin currently does not work in IE11, because IE does not support some ES features like const in for...of loops.
mapbox-gl-js version: 0.36.0 mapbox-gl-draw version: 0.17.4
Steps to Trigger Behavior
- Open Internet Explorer
Expected Behavior
No errors on console
Actual Behavior
console throws: 'Const must be initialized' error
Possible fix: transpile with es2015-ie babel preset
Sven,
Thanks for opening this. Can you make a PR that implements your proposal?
Regards, Matthew
I think #637 is blocking this issue since the sources get transformed by babelify and put into dist/mapbox-gl-draw.js which would work fine if the file wouldn't be empty and the 'main' entry in package.json would point to this file.
We are seeing this problem as well. It would be great to get this resolved.
I'm pretty sure this is fixed in 0.18.0
. I'm not sure why the distribution was lost in 0.17.4
, but it should be available now.
Following https://github.com/mapbox/mapbox-gl-draw/issues/637 for distribution confirmation.
This https://github.com/mapbox/mapbox-gl-draw/pull/648 is missing for the fix.
It is happening again. main point to index.js that is not transpilled.
@andrewharvey can you please re-open this issue?
Fixed in https://github.com/mapbox/mapbox-gl-draw/releases/tag/v1.2.0-beta.1
Still doesn't transpile.
For me neither. @andrewharvey can you reopen this once again?
+1 I am currently experiencing this issue as of March 2021