Fix parse error for import() in older browsers (#571)
- add import() polyfill that evals in Function() and falls back to script tag injection - add AbortController polyfill for MapLibre (lazy loaded so can be in bundle, not for Web Workers) - support Firefox 56, last supporting old plugins before Web Extensions
This commit is contained in:
parent
c5f841be6c
commit
74a6bcd92e
4 changed files with 107 additions and 61 deletions
|
|
@ -28,6 +28,7 @@
|
|||
"> 0.5%",
|
||||
"last 2 versions",
|
||||
"Firefox ESR",
|
||||
"Firefox >= 56",
|
||||
"not dead",
|
||||
"Explorer >= 10",
|
||||
"Android >= 4.1",
|
||||
|
|
@ -44,6 +45,7 @@
|
|||
"@maplibre/maplibre-gl-leaflet": "^0.0.17",
|
||||
"@turf/turf": "^6.2.0",
|
||||
"Leaflet.vector-markers": "nrenner/Leaflet.vector-markers#2ef80c9",
|
||||
"abortcontroller-polyfill": "^1.7.3",
|
||||
"async": "~2.6.0",
|
||||
"bootbox": "~5.5.2",
|
||||
"bootstrap": "4.6.1",
|
||||
|
|
@ -380,6 +382,11 @@
|
|||
"dist/maplibre-gl.js.map",
|
||||
"dist/maplibre-gl.css"
|
||||
]
|
||||
},
|
||||
"abortcontroller-polyfill": {
|
||||
"main": [
|
||||
"dist/polyfill-patch-fetch.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue