From 117390a22aca55f7edbcf005d5058a580b3b911c Mon Sep 17 00:00:00 2001 From: Tyler Smalley Date: Sat, 11 May 2019 08:07:51 -0700 Subject: [PATCH] Use mapbox-gl-draw/dist for IE11 support 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 --- x-pack/plugins/maps/public/components/map/mb/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/maps/public/components/map/mb/view.js b/x-pack/plugins/maps/public/components/map/mb/view.js index f173add6fdeac..11f773cb43a1a 100644 --- a/x-pack/plugins/maps/public/components/map/mb/view.js +++ b/x-pack/plugins/maps/public/components/map/mb/view.js @@ -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';