Skip to content

Commit 54f53d1

Browse files
author
Tyler Smalley
authored
Use mapbox-gl-draw/dist for IE11 support (#36505)
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 <tyler.smalley@elastic.co>
1 parent 8c649d9 commit 54f53d1

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugins/maps/public/components/map/mb

1 file changed

+1
-1
lines changed

x-pack/plugins/maps/public/components/map/mb/view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
ZOOM_PRECISION
1616
} from '../../../../common/constants';
1717
import mapboxgl from 'mapbox-gl';
18-
import MapboxDraw from '@mapbox/mapbox-gl-draw';
18+
import MapboxDraw from '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw-unminified';
1919
import DrawRectangle from 'mapbox-gl-draw-rectangle-mode';
2020
import { FeatureTooltip } from '../feature_tooltip';
2121
import { DRAW_TYPE } from '../../../actions/store_actions';

0 commit comments

Comments
 (0)