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 May 3, 2018
1 parent 913f025 commit 9d6f7b2
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 9d6f7b2

Please sign in to comment.