Skip to content

Commit e54a09e

Browse files
author
Aamod Pisat
committed
Added es6-promise polyfill in browsers.
1 parent f0fe21a commit e54a09e

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

src/runtime/node/http.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
require('es6-promise').polyfill();
1+
import ES6Promise from 'es6-promise';
22
import fetch from 'isomorphic-fetch';
33

4+
ES6Promise.polyfill();
5+
46
export default fetch;

src/runtime/react-native/http.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
import ES6Promise from 'es6-promise';
2+
import fetch from 'isomorphic-fetch';
3+
4+
ES6Promise.polyfill();
5+
16
export default fetch;
27

src/runtime/web/http.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
require('es6-promise').polyfill();
1+
import ES6Promise from 'es6-promise';
22
import fetch from 'isomorphic-fetch';
33

4+
ES6Promise.polyfill();
5+
46
export default fetch;

0 commit comments

Comments
 (0)