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:
Norbert Renner 2022-06-28 18:54:21 +02:00
parent c5f841be6c
commit 74a6bcd92e
4 changed files with 107 additions and 61 deletions

View file

@ -5,6 +5,6 @@
"es2021": true
},
"settings": {
"polyfills": ["URL", "Promise", "navigator", "Uint8Array", "performance", "location.hostname"]
"polyfills": ["URL", "Promise", "navigator", "Uint8Array", "performance", "location.hostname", "document.body"]
}
}