Skip to content

Commit

Permalink
Use mapbox-gl-draw/dist for IE11 support (#36505)
Browse files Browse the repository at this point in the history
This package publishes it's transpiled code in a dist directory without updating
the package.json's main to point to this file. Since we do not transpile node
modules we are updating the require statement to explicitly point to this
file.

Signed-off-by: Tyler Smalley <[email protected]>
  • Loading branch information
Tyler Smalley authored May 20, 2019
1 parent 8c649d9 commit 54f53d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/maps/public/components/map/mb/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
ZOOM_PRECISION
} from '../../../../common/constants';
import mapboxgl from 'mapbox-gl';
import MapboxDraw from '@mapbox/mapbox-gl-draw';
import MapboxDraw from '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw-unminified';
import DrawRectangle from 'mapbox-gl-draw-rectangle-mode';
import { FeatureTooltip } from '../feature_tooltip';
import { DRAW_TYPE } from '../../../actions/store_actions';
Expand Down

0 comments on commit 54f53d1

Please sign in to comment.