I'm using curl
or require
(evaluating both) to load js files asynchronously. I'm using 5 js files in my prototyping app:
jquery.min.js // off of CDN
Bacon.js // reactive programming tool
curl.js // js loader
index.coffee // page specific
foo.coffee // app specific
OK, so I built index.coffee
and foo.coffee
, so I'm pretty sure those aren't AMD compatible. Could be wrong though, since foo.coffee
has
if module? && module.exports?
module.exports = Foo
at the end.
How do I look at a js file and say 'Yes, AMD' or 'No, not AMD'?