Skip to content

Superagent for Webpack

Kornel edited this page Sep 5, 2017 · 4 revisions

Superagent has two versions: browser-only and Node-only.

By default webpack will try to compile the browser-only version. If you're bundling for non-browser environment, you need to set webpack's target accordingly.

Clone this wiki locally