mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-14 17:45:48 +00:00
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:
@@ -53,12 +53,13 @@ function getWebpackConfig(extension, overrides) {
|
||||
use: [{
|
||||
loader: 'ts-loader',
|
||||
options: {
|
||||
compilerOptions: {declaration: false}
|
||||
compilerOptions: {
|
||||
composite: false,
|
||||
declaration: false,
|
||||
declarationMap: false
|
||||
}
|
||||
},
|
||||
}],
|
||||
}, {
|
||||
test: /\.json/,
|
||||
use: 'json-loader',
|
||||
}]
|
||||
},
|
||||
resolve: {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user