I'm just starting to use require.js
and think it's great. However, I would like to use it as much as possible instead of dealing with <script>
tags in my HTML files.
To that end, is it possible to work with a 3rd party library that doesn't have any define
modules in it? This may be asking much I realize but is there a way to call...
require(["3rd_party"], function(3rd) {
});
...where 3rd_party.js
is a script located in a js folder that require knows to look in? I know require has mapping libraries, things like require-jquery
but wasn't sure if it's possible to use it out of the box with older utility libraries that weren't built with it in mind.