isomorphic-fetch icon indicating copy to clipboard operation
isomorphic-fetch copied to clipboard

Clarification on non-browserify integration

Open DullReferenceException opened this issue 7 years ago • 4 comments

Given the description of this project:

Isomorphic WHATWG Fetch API, for Node & Browserify

It seems to imply it is incompatible with webpack. However, looking at the code here, there's this comment:

// Return that as the export for use in Webpack, Browserify etc.

...and I don't see anything that is explicitly Browserify-only here.

Has this been verified to work/not work with webpack bundles? It would be nice to call this out explicitly in the README.

DullReferenceException avatar Apr 03 '17 18:04 DullReferenceException

I haven't tried it with webpack, but it does not work with rollup.

JohanBjoerklund avatar Apr 25 '17 13:04 JohanBjoerklund

I think webpack should work, that's how we use(d) at the FT.

matthew-andrews avatar Apr 26 '17 04:04 matthew-andrews

[didn't mean to close this, sorry!]

matthew-andrews avatar Apr 26 '17 04:04 matthew-andrews

I'm using webpack and it doesnt work on old browsers that don't have fetch variable. Is there any workaround / fix / alternative? (or maybe I'm doing something wrong?)

SirGordon avatar May 08 '17 12:05 SirGordon