You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When looking at the code of got inside node_modules, some parts look like this:
Object.defineProperty(this,"options",{enumerable: true,configurable: true,writable: true,value: void0,});Object.defineProperty(this,"response",{enumerable: true,configurable: true,writable: true,value: void0,});Object.defineProperty(this,"requestUrl",{enumerable: true,configurable: true,writable: true,value: void0,});// lots of similar code
Using a more modern typescript output target like ES2022 would completely remove this kind code, while still being compatible with node 14, 16, 18 and 20.
Size improvements
This would reduce the total javascript size from 217.1 kB to 213 kB (2% improvement).
The text was updated successfully, but these errors were encountered:
What problem are you trying to solve?
When looking at the code of got inside node_modules, some parts look like this:
Using a more modern typescript output target like ES2022 would completely remove this kind code, while still being compatible with node 14, 16, 18 and 20.
Size improvements
This would reduce the total javascript size from 217.1 kB to 213 kB (2% improvement).
The text was updated successfully, but these errors were encountered: