Skip to content

Commit

Permalink
Add polyfills to work around IE shortcomings
Browse files Browse the repository at this point in the history
  • Loading branch information
danesparza committed Apr 5, 2018
1 parent 5bc01a5 commit 4df51be
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"bootstrap": "4.0.0-beta.3",
"bootswatch": "^4.0.0-beta.3",
"classnames": "^2.2.5",
"core-js": "^2.5.4",
"flux": "^3.1.3",
"font-awesome": "^4.7.0",
"immutable": "^3.8.2",
Expand Down
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import registerServiceWorker from './registerServiceWorker';
// Stylesheets & images
import 'bootswatch/dist/flatly/bootstrap.min.css';

// Polyfills (IE is the worst):
import './polyfills';

// Utils:
import CentralConfigAPIUtils from './utils/CentralConfigAPIUtils';

Expand Down
6 changes: 6 additions & 0 deletions src/polyfills.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@


/** Seriously -- IE is the worst */
import 'core-js/fn/array/find';
import 'core-js/fn/array/find-index';
import 'core-js/fn/number/is-nan';
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,10 @@ 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.5.4:
version "2.5.4"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.4.tgz#f2c8bf181f2a80b92f360121429ce63a2f0aeae0"

core-util-is@1.0.2, core-util-is@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
Expand Down

0 comments on commit 4df51be

Please sign in to comment.