Skip to content

Commit

Permalink
add comment to explain fetch fork
Browse files Browse the repository at this point in the history
  • Loading branch information
xg-wang committed Jul 20, 2018
1 parent 808bc50 commit 25f7273
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -130,6 +130,8 @@ const templatePath = path.resolve(__dirname + '/assets/browser-fetch.js.t');
// wrapped in a shim that stops it from exporting a global and instead turns it into a module
// that can be used by the Ember app.
function treeForBrowserFetch() {
// Fork whatwg-fetch to provide umd build before official release, no extra change made.
// We will get back to the official one when new version released.
const fetchTree = path.dirname(require.resolve('@xg-wang/whatwg-fetch'));
const abortcontrollerTree = path.dirname(require.resolve('abortcontroller-polyfill'));
const polyfillTree = concat(new MergeTrees([abortcontrollerTree, fetchTree]), {
Expand Down

0 comments on commit 25f7273

Please sign in to comment.