4 ms·
The main difference between this and other solutions like RequireJS is the fact that you don't have to wrap your CommonJS modules in callbacks and thus could in
by arthurschreiber 16y ago
The main difference between this and other solutions like RequireJS is the fact that you don't have to wrap your CommonJS modules in callbacks and thus could in theory use them "unmodified".
- marcuswestin 16y agoThat's one of the big differences - I'd say the other big difference is that it comes with a compiler that bundles all your required modules into a single javascript file for production
- arthurschreiber 16y agoRequireJS also has it's own compiler.
- marcuswestin 16y agoDid not know that! :P I guess browser-require will still be useful, since you can import the same files in node and in the browser