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 26, 2018
1 parent 8f22018 commit 4b3b0b4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions gatsby-browser.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* *** CONFIDENTIAL ***
* -------------------------------------------------------------------------
* Unauthorized copying of this file, via any medium is strictly prohibited.
* -------------------------------------------------------------------------
*
* @summary The following script defines actions to
* be loaded in the clients' browser.
*
* @author Alvis HT Tang <alvis@hilbert.space>
* @license Proprietary
* @copyright Copyright (c) 2018 - All Rights Reserved.
* -------------------------------------------------------------------------
*/

import 'babel-polyfill';
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 = () => {
// Don't need to do anything here, but if you don't
// export something, the import won't work.
};

0 comments on commit 4b3b0b4

Please sign in to comment.