Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
fix conflict with yoast seo plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dsifford committed Oct 17, 2017
1 parent 3a61718 commit f226f35
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/types/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ declare const DocumentTouch: any;
declare const Rollbar: IRollbar;

interface Window {
_babelPolyfill: boolean;
ABT: ABT.Backend;
DocumentTouch?: any;
Rollbar: IRollbar;
Expand Down
3 changes: 3 additions & 0 deletions src/js/utils/polyfill.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if (!top._babelPolyfill) {
require('babel-polyfill');
}
2 changes: 1 addition & 1 deletion webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const config: webpack.Configuration = {
'js/worker': ['babel-polyfill', './src/js/worker/worker'],
'js/frontend': ['babel-polyfill', './src/js/frontend'],
'js/reference-list/index': [
'babel-polyfill',
'./src/js/utils/polyfill',
'whatwg-fetch',
'raf/polyfill',
'./src/js/reference-list/',
Expand Down

0 comments on commit f226f35

Please sign in to comment.