Polyfill URLSearchParams for Firefox (#10789)

This commit is contained in:
Felix Becker 2020-05-18 21:04:08 +02:00 committed by GitHub
parent 97503ea2c5
commit fb4f27db60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -31,6 +31,8 @@ module.exports = api => {
// Polyfill URL because Chrome and Firefox are not spec-compliant
// Hostnames of URIs with custom schemes (e.g. git) are not parsed out
'web.url',
// URLSearchParams.prototype.keys() is not iterable in Firefox
'web.url-search-params',
// Commonly needed by extensions (used by vscode-jsonrpc)
'web.immediate',
// Avoids issues with RxJS interop

View File

@ -2,7 +2,11 @@
import configure from 'core-js/configurator'
configure({
// Polyfill URL because Chrome and Firefox are not spec-compliant
// Hostnames of URIs with custom schemes (e.g. git) are not parsed out
usePolyfill: ['URL'],
usePolyfill: [
// Polyfill URL because Chrome and Firefox are not spec-compliant
// Hostnames of URIs with custom schemes (e.g. git) are not parsed out
'URL',
// URLSearchParams.prototype.keys() is not iterable in Firefox
'URLSearchParams',
],
})