Skip to content

Usage without polyfills #212

@mendeljacks

Description

@mendeljacks

the library cipher-base from browserify-sign is using node js internal module 'stream'
which is not available in the browser.

I have come up with a fix for now which is to patch require('stream') to be require('readable-stream'), but it's not very elegant.

To reproduce:

  • start a vite project with rollup bundler for react
  • import crypto-browserify and try to sign using createSign

Expected:

  • It should work

Actual:

  • Cannot read property call of undefined at require('stream').Transform

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions