Skip to content
SPECIFICTION
Get listed

ncc vs Rspack

ncc

github.com

Rspack

rspack.rs

Side by side

FigurenccRspack
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Web—Yes
Windows—Yes
macOS—Yes
LinuxYesYes
Self-hosted—Yes
Plans published11
Spec score · JavaScript Build Tools8.2 (#5)7.8 (#11)
LicenseThe repository lists an MIT license.Rspack is free and open source software released under the MIT license.
Purposencc is a CLI that compiles a Node.js module and its dependencies into a single file.Rspack is a fast Rust-based bundler for the web that modernizes the webpack API to support replacing webpack.

Plans

ncc

  • @vercel/nccFree

ncc pricing →

Rspack

  • Free and open sourceFree

Rspack pricing →

In their own words

ncc

ncc is a free, MIT-licensed command-line tool for compiling a Node.js module and its dependencies into one file. It is distributed through npm as `@vercel/ncc`, with `npm i -g @vercel/ncc` given as the global installation command. The project targets publishing minimal npm packages and sending only relevant application code to serverless environments. Its design goals include zero configuration, built-in TypeScript support, and handling Node.js programs and npm modules. Inputs can include TypeScript, binary addons, and dynamic requires. Build options cover minification, source maps, watched builds, external modules, and ECMAScript target selection. Node.js programs can call ncc programmatically with options for caching, externals, minification, source maps, and asset builds. `.ts` and `.tsx` inputs require a `tsconfig.json`. Module-format behavior includes automatic ES module output for `.mjs` files and `.js` files inside a `type: module` package boundary. Support examples cover Sequelize with MariaDB and `@google-cloud/vision` with `google-proto-files`. Dynamically loaded assets that static analysis cannot identify may not work correctly. It runs on Linux.

Visit github.com

Rspack

Rspack is a free, open-source bundler for web projects, built with Rust and TypeScript. Its parallelized architecture supports parallel builds, while incremental compilation is used to improve hot module replacement. Rspack updates the webpack API with the aim of supporting webpack replacement, but it does not promise full API compatibility; it prioritizes commonly used APIs and adds others based on user needs. It works with almost all community loaders, and over 85% of the 50 most downloaded webpack plugins can be used with it or have an alternative. Built-in capabilities include code splitting, tree shaking, asset management, a development server, SWC, Lightning CSS, and a JavaScript build API. Documented integrations cover React, React Server Components, Preact, Vue, Next.js, Node.js applications, NestJS, Solid, Svelte, and Rstest. Custom plugins and loaders can be written in JavaScript or Rust. Rspack 1.0 was released in August 2024 and is described as production-ready. It is available for Linux, macOS, and Windows, as well as web and self-hosted environments. The software is released under the MIT license; questions can be directed to Discord or GitHub Discussions.

Visit rspack.rs