Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nope, RequireJS can load any kind of Javascript dependency, even if it doesn't use the AMD format. You can even specify dependencies for non-AMD scripts in the configuration object.[0]

As for define(), there's only one AMD method signature: define([[name,] deps,] fn). Any loader that does not accept this signature cannot legitimately call itself an AMD loader.

[0] http://requirejs.org/docs/api.html#config-shim



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: