RequireJS 2.1.5 Released

Mon, 04 Mar 2013 07:41:27 GMT

RequireJS 2.1.5 is available.

Biggest change is support for running the optimizer and loading AMD modules in xpcshell. It is a bit tricky to get xpcshell on your machine. It normally means creating a debug build of Firefox. But if you have a build or test environment built around xpcshell, RequireJS and the optimizer now run in that environment.

I tried to get r.js to work in Windows Script Host, but unfortunately, cscript is too limited to be useful.

If someone else knows how to run JS on the Windows command line that has access to file IO natively on Windows, please let me know in that issue. However, if it means downloading some sort of binary, I am more likely to discard that approach and encourage developers to take the already available node path for Windows.

Similarly, I wish JSC on OS X had a way to access the file system. If it did, it would be easy to write an adapter for it. However, JSC seems limited to just stdin/stdout.

Full list of changes for 2.1.5:

Go to comments