From 23c863c4103e100ad2233b195cd4870e6b0a19ff Mon Sep 17 00:00:00 2001 From: archmoj Date: Wed, 27 Jan 2021 23:19:16 -0500 Subject: [PATCH 1/2] require unminified mapbox-gl --- src/plots/mapbox/index.js | 2 +- src/plots/mapbox/mapbox.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plots/mapbox/index.js b/src/plots/mapbox/index.js index a5b3fed70fc..1fe03d82e39 100644 --- a/src/plots/mapbox/index.js +++ b/src/plots/mapbox/index.js @@ -1,6 +1,6 @@ 'use strict'; -var mapboxgl = require('mapbox-gl'); +var mapboxgl = require('mapbox-gl/dist/mapbox-gl-unminified'); var Lib = require('../../lib'); var strTranslate = Lib.strTranslate; diff --git a/src/plots/mapbox/mapbox.js b/src/plots/mapbox/mapbox.js index dd3565dbce9..5046b261e22 100644 --- a/src/plots/mapbox/mapbox.js +++ b/src/plots/mapbox/mapbox.js @@ -1,6 +1,6 @@ 'use strict'; -var mapboxgl = require('mapbox-gl'); +var mapboxgl = require('mapbox-gl/dist/mapbox-gl-unminified'); var Lib = require('../../lib'); var geoUtils = require('../../lib/geo_location_utils'); From 3084e7485b9ae9b104054212a22a9c091083ea19 Mon Sep 17 00:00:00 2001 From: archmoj Date: Wed, 27 Jan 2021 23:43:17 -0500 Subject: [PATCH 2/2] no longer need to turn off typeofs to make map-box-gl work in IE10 --- tasks/util/constants.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tasks/util/constants.js b/tasks/util/constants.js index f53719664b0..032eb2aecd6 100644 --- a/tasks/util/constants.js +++ b/tasks/util/constants.js @@ -99,15 +99,6 @@ module.exports = { uglifyOptions: { ecma: 5, mangle: true, - compress: { - // see full list of compress option - // https://github.com/fabiosantoscode/terser#compress-options - // - // need to turn off 'typeofs' to make mapbox-gl work in - // minified bundles, for more info see: - // https://github.com/plotly/plotly.js/issues/2787 - typeofs: false - }, output: { beautify: false, ascii_only: true