Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.
ncc
allows for using and testing rollup quickly, without
special configuration.
$ ncc input.js -o bundle.js
require('@zeit/ncc')('/path/to/input', {
minify: true // default
}).then(bundle => {
// result of rollup `bundle.generate()` call
console.log(bundle.code)
})
- Make self-hosting