superagent single file including modules

19 views
Skip to first unread message

ilker Aktuna

unread,
Mar 31, 2016, 3:57:41 PM3/31/16
to nodejs
Hi,

I have a sample code which uses superagent. But I need to run this on a platform with limited "require" support.
The platform is Tizen IDE for Samsung Gear S2 watch.

Since this platform supports require function only with requirejs and the format for includes change, I need minimum number of js files.
So I want a single file for superagent.

I found methods to export a single file superagent.js using browserify.
However, with that method I was not able to include modules in superagent (like qs, debug) 
How can I do that ?

For example, I want to access stringify function in qs module (stringify.js)
How can I create a single file for superagent including all modules and js files ?

Thanks.


Reply all
Reply to author
Forward
0 new messages