Browser-require.js brings "require" to the browser (just like node) (github.com)
Browser-require lets you write javascript using "require", "exports" and "module" in the browser, just as you would in node. It helps you with your dependency management, and provides a compiler to condense all your required modules into a single file for production.
16 comments
[ 3.2 ms ] story [ 34.8 ms ] threadSounds like a great way to create a lousy user experience.
http://blog.getify.com/2009/11/labjs-why-not-just-concat/
I guess browser-require will still be useful, since you can import the same files in node and in the browser
This is great, but I could not figure out debugging my loaded code with this solution.
Any ideas ?
The problem of getting stacktraces for errors remains.
UPDATE: Just tested in Safari. I get nice stacktraces there. Its only a problem in Chrome.