matthew-andrews / isomorphic-fetch

Isomorphic WHATWG Fetch API, for Node & Browserify
MIT License
6.95k stars 289 forks source link

Which files need to be hosted on cdnjs? #132

Closed dakshshah96 closed 7 years ago

dakshshah96 commented 7 years ago

Hi, I'd like to host your library, isomorphic-fetch on cdnjs — It is one of the most famous free and public web front-end CDN services which is used by ~1,143,000 websites worldwide.

There are three files which seem relevant to me in your repository:

fetch-bower.js
fetch-npm-browserify.js
fetch-npm-node.js

Which files out of the ones listed above will work in a browser and let developers use your library directly? Also, please let me know if there are any other files that should be hosted.

matthew-andrews commented 7 years ago

I think none of them will work on their own in the browser… It needs to be compiled via browserify / babel etc to work in the browser.

matthew-andrews commented 7 years ago

(Also thank you for your kind message and interest)

dakshshah96 commented 7 years ago

@matthew-andrews Thanks for letting me know! 😄

PeterDaveHello commented 7 years ago

Hi @matthew-andrews, is it possible to provide it in the repository? Since one of your users is asking CDNJS to host it :)

matthew-andrews commented 7 years ago

I don't really like to commit built files into repositories… Could you pull the file from a web service that npm install's and webpack's the module instead? e.g. https://www.ft.com/__origami/service/build/v2/bundles/js?modules=isomorphic-fetch@^2.2.1

matthew-andrews commented 7 years ago

or this one:- https://wzrd.in/bundle/isomorphic-fetch

PeterDaveHello commented 7 years ago

hmmmm ... we don't support that yet.