Hey, i'm trying to use ViteJs for project.
Since this is es6 only, the code errors out inside safe-buffer package Buffer is undefined here

If we included this simple check, this wouldn't error out in ViteJs environment.

Is there any reason not to include check like this? If you would be interested, i could submit PR