Skip to content

Doesn't work with Browserify #27

@epsil

Description

@epsil

I have trouble using this library with Browserify. Whenever I do require('preq'), the browserified bundle stops working. That is, Browserify succeeds in creating a bundle; but the bundle doesn't work. When the bundle file is included in a web page, nothing happens.

The command I use to create a bundle is:

browserify index.js -o bundle.js

where index.js is a file that requires preq, and bundle.js is the resulting file to include in a web page's <script> tag.

Note that the request library, which preq builds upon, is browserifiable. request seamlessly invokes XMLHttpRequest when run in the browser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions