mapbox / mapbox/mapbox-gl-draw

Code not transpiled for IE11

Open
#638 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.