Avoid using global Buffer#338
Avoid using global Buffer#338jimmywarting wants to merge 1 commit intomscdex:masterfrom jimmywarting:patch-2
Conversation
|
Why? |
|
trying to assume that it exist globally is problematic for bundlers. it needs to scan the code if one is using globalThis.buffer and needs to decide if it have to polyfill it or not.
my own code can detect this kinds of patterns where ppl try to use globalThis.buffer and yours is one of them |
|
As far as linting goes, this project uses Regarding the aforementioned links and notes about deprecating global |
|
In any case i think you should attempt to only use Uint8Array instead of the overhead Buffer if at all possible. |
That's not very feasible considering:
|
No description provided.