Skip to content

safe-buffer in modern build tools like Vitejs #30

@mecirmartin

Description

@mecirmartin

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

Screenshot 2021-04-19 at 11 31 26

If we included this simple check, this wouldn't error out in ViteJs environment.
Screenshot 2021-04-19 at 11 32 12

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions