Compact builder
Under the hood, ncc uses webpack
the goals for ncc are more specific than webpack so that's why you typically can use ncc with zero configuration
ncc is designed for Node not for Web like ts cli project
Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.
- TypeScript built-in
- Zero configuration
- Only supports Node.js programs as input / output
- Support all Node.js patterns and npm modules
Example
nuxt-community/jimp-compact
Compact Version of Jimp 🔥 Compiled using zeit/ncc This package has 32x smaller install size with all features of original jimp (Jimp install size is ~16.3MB) Install and import/require jimp-compact instead of jimp NPM package. See jimp docs for full usage. MIT - Based on Jimp
https://github.com/nuxt-community/jimp-compact
vercel/ncc
Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style. Publish minimal packages to npm Only ship relevant app code to serverless environments Don't waste time configuring bundlers Generally faster bootup time and less I/O overhead Compiled language-like experience (e.g.: go) Zero configuration TypeScript built-in Only supports Node.js programs as input / output Support all Node.js patterns and npm modules Eg: $ ncc build input.js -o dist Outputs the Node.js compact build of input.js into dist/index.js.
https://github.com/vercel/ncc

Seonglae Cho