mapbox / mapbox/mapbox-gl-draw
Code not transpiled for IE11
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
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
1. 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the console error in Internet Explorer 11 with mapbox-gl-draw 0.17.4, then inspect the project's Babel/transpilation configuration and the generated browser bundle. The work is done when the plugin runs in IE11 without the reported 'Const must be initialized' error and the supported browser behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100