I am a little confused about multiple ways of importing files in Javascript (script tag, RequireJS, Component - if it is another way to include files). In my project, I am using AMD with RequireJS.
Now, I want to use superagent library.
I donwnloaded superagent.js file, and I included it in some test pages using script tag. Then, I can use a require function (defined in superagent.js), and I definitely have access to superagent functions, if I write:
var request = require('superagent');
in my JS file.
Is there a way to use Superagent library in my poject, which is based on RequireJS? I hope to still use:
var request = require('superagent');
, but clearly it is not working.