Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
polyfills() {
if (!global.Promise) {
global.Promise = require('promise-polyfill').Promise
}
if (!global.fetch) {
global.fetch = require('whatwg-fetch')
}
return true
}
value: function polyfills() {
if (!global.Promise) {
global.Promise = require('promise-polyfill').Promise;
}
if (!global.fetch) {
global.fetch = require('whatwg-fetch');
}
return true;
}