If I have a node.js application that is filled with many require statements, how can I compile this into a single .js file? I\'d have to manually r
require
.js
You can use webpack with target: 'node', it will inline all required modules and export everything as a single, standalone, one file, nodejs module
http://webpack.github.io/docs/configuration.html#target