News for hackers. Stuff that matters.
Re:Browser-require.js brings "require" to the browser (just ... by geuis on Monday January 31, 2011 @10:41AM (#2161774)
I don't understand. Require.js already works in the browser. http://requirejs.org/
Re:Browser-require.js brings "require" to the browser (just ... by marcuswestin on Monday January 31, 2011 @10:48AM (#2161817)
require.js does asynchronous file loading and is supposed to be deployed as-is in production. Browser-require makes it easy to develop your code using synchronous require statements and straight-forward dependency management. For production it has a compiler that combines all the required files into a single file (which is the only way you should serve your javascript in production)
Re:Browser-require.js brings "require" to the browser (just ... by rmurphey3 on Monday January 31, 2011 @11:44AM (#2162116)
RequireJS also has a "compiler" that will combine your files into one or more layers for production use, as well as straightforward dependency management.