Skip to content

Instantly share code, notes, and snippets.

@ryanflorence
Created January 27, 2016 05:18
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ryanflorence/6a91a95dc4558204f2c4 to your computer and use it in GitHub Desktop.
Save ryanflorence/6a91a95dc4558204f2c4 to your computer and use it in GitHub Desktop.
if (typeof Promise === 'undefined') {
require.ensure([], (require) => {
require('imports?this=>window!es6-promise')
})
}
if (typeof fetch === 'undefined') {
require.ensure([], (require) => {
require('imports?self=>window!whatwg-fetch')
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment