-
-
Notifications
You must be signed in to change notification settings - Fork 236
Closed
Description
One of my projects targets very old specialised browsers, and when readable-stream dependency is brought in the webpack produced code fails to run because of SyntaxError here:
Lines 339 to 340 in a2e9aed
| if (input > 2n ** 32n || input < -(2n ** 32n)) { | |
| received = addNumericalSeparator(received) |
Turns out that specialised browser based on WebKit can not parse bigint literals.
I'm not sure if I am missing something but I was not able to find a solution to transpile the bigint literals correctly to target older browsers.
But turns out that the fix could be to avoid bigint literal and use BigInt constructor.
Metadata
Metadata
Assignees
Labels
No labels