Skip to content

Commit

Permalink
Merge pull request openshift#2140 from ggreer/ie11
Browse files Browse the repository at this point in the history
Get console to load in IE11
  • Loading branch information
ggreer authored Mar 20, 2018
2 parents e2e033e + d4ff69d commit 547363d
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 7 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,14 @@ Update existing frontend dependencies:
```
yarn upgrade <package@version>
```


#### Supported Browsers

We support the latest versions of the following browsers:

- Edge
- Chrome
- Safari
- Firefox
- TODO: IE 11. Needs polyfills. Also, IE 11 can't open more than 6 websockets.
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"dependencies": {
"brace": "0.11.x",
"classnames": "2.x",
"core-js": "2.x",
"file-saver": "1.3.x",
"font-awesome": "4.7.x",
"fuzzysearch": "1.0.x",
Expand Down
8 changes: 8 additions & 0 deletions frontend/polyfills.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Polyfills. Mostly for IE11
import 'core-js/es6/map';
import 'core-js/es6/promise';
import 'core-js/fn/string/includes';
import 'core-js/fn/string/starts-with';
import 'core-js/fn/array/find';
import 'core-js/fn/object/assign';
import 'core-js/es6/reflect';
7 changes: 4 additions & 3 deletions frontend/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ const gitHash = () => require('child_process').execSync('git rev-parse --short H
const extractSass = new ExtractTextPlugin({filename: 'app-bundle.css'});

let config: webpack.Configuration = {
entry: {
app: './public/components/app.jsx',
},
entry: [
'./polyfills.js',
'./public/components/app.jsx',
],
output: {
path: path.resolve(__dirname, 'public/dist'),
publicPath: 'static/',
Expand Down
8 changes: 4 additions & 4 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1613,14 +1613,14 @@ copy-descriptor@^0.1.0:
version "0.1.1"
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"

core-js@2.x, core-js@^2.0.0, core-js@^2.4.0, core-js@^2.5.0:
version "2.5.3"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.3.tgz#8acc38345824f16d8365b7c9b4259168e8ed603e"

core-js@^1.0.0:
version "1.2.7"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"

core-js@^2.0.0, core-js@^2.4.0, core-js@^2.5.0:
version "2.5.3"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.3.tgz#8acc38345824f16d8365b7c9b4259168e8ed603e"

core-js@~2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.3.0.tgz#fab83fbb0b2d8dc85fa636c4b9d34c75420c6d65"
Expand Down

0 comments on commit 547363d

Please sign in to comment.