Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Guard ie9 polyfill against window possibly being undefined
  • Loading branch information
jxom authored Jun 12, 2019
commit 99e9bdd9bdbe35e0aa043f23174ba11d8694f84c
5 changes: 4 additions & 1 deletion packages/react-app-polyfill/ie9.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ require('./ie11');
// React 16+ relies on Map, Set, and requestAnimationFrame
require('core-js/features/map');
require('core-js/features/set');
require('raf').polyfill(window);

if (typeof window !== 'undefined') {
require('raf').polyfill(window);
}