Fix browser builds (#1006)

tsconfig:
- Must set composite: false
- Must set declarationMap: false in order to use declaration: false

json-loader:
- Not needed with webpack >= v2.0.0 and in fact does not work

https-proxy-agent cannot be used in the browser
This commit is contained in:
Elliot Lee
2019-04-29 23:19:05 -07:00
committed by GitHub
parent f6a22d2121
commit 3d1a530796
2 changed files with 7 additions and 5 deletions

View File

@@ -10,7 +10,8 @@
"main": "dist/npm/",
"types": "dist/npm/index.d.ts",
"browser": {
"ws": "./dist/npm/common/wswrapper.js"
"ws": "./dist/npm/common/wswrapper.js",
"https-proxy-agent": false
},
"directories": {
"test": "test"