Side by side
ncc vs Sucrase
Both stand on javascript build tools. Which one you can start free with, which one lets you read the code, and what each costs once you pay.
Free plan Linux
ncc provides command-line and programmatic options for bundling Node.js programs, with support for TypeScript and several build controls. Check the TypeScript configuration requirement and static analysis caveat against the packages and assets you plan to bundle.
Visit ncc Free plan APILinux
Choose Sucrase for development builds targeting modern JavaScript runtimes when its available transforms and integrations fit your project. Look elsewhere if you need type checking, old-browser output, extensible plugins, or a production-build tool better suited to that role.
Visit SucraseThe facts
| ncc | Sucrase | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | Linux | API, Linux |
| Lowest paid plan | Free or on request | Free or on request |
| Plans published | 1 | 1 |
| Maker | Not published | Not published |
| Website | github.com | sucrase.io |
| On javascript build tools | #13 of 27 | #17 of 27 |
ncc: what it does well
- Compiles modules and dependencies into one file
- Supports TypeScript, binary addons, and dynamic requires
- Offers minification, source maps, and watched builds
- Can be called programmatically from Node.js
- MIT-licensed and listed as free
What to know first
- TypeScript inputs require a tsconfig.json file
- Some dynamically loaded assets may not work correctly
- Some packages may need extra configuration
Sucrase: what it does well
- Free, MIT-licensed software.
- Transforms JSX, TypeScript, and Flow.
- Offers CLI, Node require hook, ts-node plugin, and JavaScript API.
- Lists integrations for Webpack, Gulp, Jest, Rollup, and Broccoli.
- Supports source maps.
What to know first
- Does not perform TypeScript or Flow type checking.
- Does not compile for older browsers such as Internet Explorer.
- Transforms cannot be extended through a plugin API.
- Babel or tsc may be more suitable for production builds.