Skip to content

Commit

Permalink
Fix polyfills
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgzf committed Jul 13, 2020
1 parent 9d56881 commit 09ca440
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions website/src/entry/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// Import Sentry earliest to capture exceptions
import 'bootstrapping/sentry';
// core-js has issues with Promise feature detection on Edge, and hence
// polyfills Promise incorrectly. Importing this polyfill directly resolves that.
// This is necessary as PersistGate used in ./App uses `Promise.prototype.finally`.
// See: https://github.com/zloirock/core-js/issues/579#issuecomment-504325213
import 'core-js/es/promise/finally';

import React from 'react';
import ReactDOM from 'react-dom';
Expand Down

0 comments on commit 09ca440

Please sign in to comment.