Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not ignore decompress-response when bundling (#1105)
  • Loading branch information
ci010 committed Mar 4, 2020
1 parent cf4fdad commit 88f973f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -94,7 +94,6 @@
"types": "dist/source",
"sideEffects": false,
"browser": {
"decompress-response": false,
"electron": false
},
"ava": {
Expand Down

1 comment on commit 88f973f

@qtisan
Copy link

@qtisan qtisan commented on 88f973f Mar 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without the decompress: false, it would catch an error:

get-response.js:15 Uncaught (in promise) TypeError: decompressResponse is not a function
    at Object.module.exports../node_modules/got/dist/source/get-response.js.exports.default (get-response.js:15)
    at ClientRequest.handleResponse (request-as-event-emitter.js:121)
    at Object.onceWrapper (events.js:300)
    at ClientRequest.emit (events.js:215)
    at ClientRequest.origin.emit (index.js:39)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:583)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:115)
    at TLSSocket.socketOnData (_http_client.js:456)
    at TLSSocket.emit (events.js:210)
    at addChunk (_stream_readable.js:308)

Please sign in to comment.