diff options
Diffstat (limited to 'node_modules/isomorphic-fetch/fetch-npm-browserify.js')
-rw-r--r-- | node_modules/isomorphic-fetch/fetch-npm-browserify.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/isomorphic-fetch/fetch-npm-browserify.js b/node_modules/isomorphic-fetch/fetch-npm-browserify.js new file mode 100644 index 000000000..7f16e2319 --- /dev/null +++ b/node_modules/isomorphic-fetch/fetch-npm-browserify.js @@ -0,0 +1,6 @@ +// the whatwg-fetch polyfill installs the fetch() function +// on the global object (window or self) +// +// Return that as the export for use in Webpack, Browserify etc. +require('whatwg-fetch'); +module.exports = self.fetch.bind(self); |