Skip to content

Commit

Permalink
fix: make babel-polyfill working
Browse files Browse the repository at this point in the history
  • Loading branch information
alvis committed Apr 30, 2018
1 parent d9be12d commit 8169f7e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions gatsby-browser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,18 @@
* -------------------------------------------------------------------------
*/

// import Browser from '#definitions/gatsby/browser';
import 'babel-polyfill';

// export const onClientEntry: Browser.onClientEntry = (): void => {};
import Browser from '#definitions/gatsby/browser';

/*
* onClientEntry is required for the polyfill to be loaded
* see https://github.com/gatsbyjs/gatsby/issues/2177
*/
export const onClientEntry: Browser.onClientEntry = (): void => {
// no need to do anything here, but if you don't
// export something, the import won't work.
};

// export const onInitialClientRender: Browser.onInitialClientRender = (): void => {};

Expand Down

0 comments on commit 8169f7e

Please sign in to comment.