In Require.js, it's possible to take a dependency on a "plain JS" lib (i.e. - it places a value on the window
). For example, in the require.config
, you'd do something along these lines:
require.config({
paths: {
myAmdModule: "/path/to/my/amd/module",
thirdPartyJS: "/path/to/plain/global/lib",
jquery: "/path/to/jquery"
},