mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:51:59 +00:00
Polyfill URLSearchParams for Firefox (#10789)
This commit is contained in:
parent
97503ea2c5
commit
fb4f27db60
@ -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
|
||||
|
||||
@ -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',
|
||||
],
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user