Skip to content

Commit

Permalink
Prevent webpack from resolving modules called with require (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
southpolesteve authored Jul 17, 2019
1 parent 5861d01 commit 0964024
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
"version": "3.0.2",
"author": "Microsoft Corporation",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
"module": "./dist-esm/index.js",
"browser": {
"./dist-esm/request/defaultAgent.js": "./dist-esm/request/defaultAgent.browser.js"
},
"types": "./dist/index.d.ts",
"engine": {
"node": ">=6.0.0"
Expand Down
9 changes: 9 additions & 0 deletions src/request/defaultAgent.browser.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Agent } from "http";
/**
* @ignore
*/
export let defaultHttpAgent: Agent;
/**
* @ignore
*/
export let defaultHttpsAgent: Agent;

0 comments on commit 0964024

Please sign in to comment.