Skip to content

Commit

Permalink
ABC-178: polyfill URLSearchParams (mattermost#694)
Browse files Browse the repository at this point in the history
* ABC-178: polyfill URLSearchParams

IE11 and the current Edge don't support URLSearchParams, newly
introduced as part of the react-router upgrades. This completely
prevents Mattermost from working. The newest Edge in preview does
support URLSearchParams and renders without issue.

* ABC-178: use exact version
  • Loading branch information
lieut-data authored and crspeller committed Feb 2, 2018
1 parent 6f9fa7b commit 2e0beb5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"reselect": "3.0.1",
"superagent": "3.8.2",
"twemoji": "2.5.0",
"url-search-params-polyfill": "2.0.2",
"webrtc-adapter": "6.0.4",
"whatwg-fetch": "2.0.3",
"xregexp": "4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ var MYSTATS = {
};

var config = {
entry: ['babel-polyfill', 'whatwg-fetch', './root.jsx', 'root.html'],
entry: ['babel-polyfill', 'whatwg-fetch', 'url-search-params-polyfill', './root.jsx', 'root.html'],
output: {
path: path.join(__dirname, 'dist'),
publicPath: '/static/',
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8702,6 +8702,10 @@ url-regex@^3.0.0:
dependencies:
ip-regex "^1.0.1"

[email protected]:
version "2.0.2"
resolved "https://registry.yarnpkg.com/url-search-params-polyfill/-/url-search-params-polyfill-2.0.2.tgz#45361092f511ae88a19dee3e7b0964634b756fb3"

url@^0.11.0:
version "0.11.0"
resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"
Expand Down

0 comments on commit 2e0beb5

Please sign in to comment.