config/polyfills.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 0

Size

Lines of Code 12
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 2
wmc 2
c 1
b 0
f 1
nc 4
mnd 1
bc 2
fnc 0
dl 0
loc 12
rs 10
bpm 0
cpm 0
noi 1
1
if (typeof Promise === 'undefined') {
2
  require('promise/lib/rejection-tracking').enable();
3
  window.Promise = require('promise/lib/es6-extensions.js');
4
}
5
6
require('whatwg-fetch');
7
8
Object.assign = require('object-assign');
0 ignored issues
show
Compatibility Best Practice introduced by
You are extending the built-in type Object. This may have unintended consequences on other objects using this built-in type. Consider subclassing instead.
Loading history...
9
10
if (process.env.NODE_ENV === 'test') {
11
  require('raf').polyfill(global);
12
}
13