Are there tools for compiling CommonJS modules into a single .js file?

javascript

Solution

Sounds like you're looking for Browserify:

https://github.com/substack/node-browserify

"Make node-style require() work in the browser with a server-side build step, as if by magic!"

Problem

Are there any tools that can compile modules written with CommonJS/Node-like modules (`require`, `exports`, etc.) into a single .js file to be served to a browser?

Original source