use browser natives when bundled for the browser
This commit is contained in:
parent
e5ff203ef4
commit
5f02f36500
|
@ -0,0 +1,4 @@
|
|||
module.exports = exports = window.fetch;
|
||||
exports.Headers = window.Headers;
|
||||
exports.Request = window.Request;
|
||||
exports.Response = window.Response;
|
|
@ -3,6 +3,7 @@
|
|||
"version": "2.0.0-alpha.3",
|
||||
"description": "A light-weight module that brings window.fetch to node.js",
|
||||
"main": "lib/index.js",
|
||||
"browser": "./browser",
|
||||
"module": "lib/index.es.js",
|
||||
"files": [
|
||||
"lib/index.js",
|
||||
|
|
Loading…
Reference in New Issue