-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
}; |