Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Adding the r.js bundler using the requirejs and almond runtimes. #5
Wow, interesting stuff! Which browser did you run this on? Either way, very happy to merge.
I'm happy to see RequireJS do so well here; didn't realize it was so competitive with Browserify/Webpack. Hadn't heard of the Almond bundler, but perf-wise it seems pretty comparable to the default bundler?
Chrome 52 on OS X, running from localhost.
I was expecting it to do better on file size. I had a hunch the runtime numbers would be good. Glad to finally have some evidence.
As @phated commented, it's a paired down version of RequireJS. If your production bundle can be loaded with a regular
There's also Alameda. Pretty much the same as RequireJS, but didn't add it because it only supports IE10+ and assumes Promises are available. Although, I did test it and was surprised it didn't do better than RequireJS on runtime:
Again, thanks for putting this together!