ncc

Bundle Node.js modules and dependencies into a single file with @vercel/ncc.

246|42|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/vercel/vercel-plugin --skill ncc-vercel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ncc
Source: https://github.com/vercel/vercel-plugin/tree/main/skills/ncc
Command: npx skills add https://github.com/vercel/vercel-plugin --skill ncc-vercel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bundling a Node.js project and all of its dependencies into a single, distributable file, simplifying deployment for serverless functions, CLIs, and containers.

Core Features & Use Cases

  • Single-file bundle: packages an app with all dependencies into one executable-like file for easy distribution.
  • Serverless & CLI ready: ideal for serverless functions, CLI tools, and self-contained Docker images.
  • Flexible configurations: supports externals, assets, and source maps via standard ncc options and tsconfig/js project setup.

Quick Start

Run the ncc build command on your project entry to generate a standalone bundle.

Frequently Asked Questions about ncc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bundle a Node.js app and all dependencies into a single file?

You can bundle a Node.js app into a single file by running the ncc build command on your project entry point, which compiles all dependencies into one portable, distributable script.

What is the best way to package Node.js serverless functions for deployment?

Packaging Node.js serverless functions is best achieved by compiling the module and its dependencies into a single self-contained file, which simplifies deployment to serverless platforms and containers.

Does ncc support external modules and source maps during the bundling process?

Yes, the Node.js bundling process supports externals, source maps, and assets through standard ncc options, allowing you to configure what gets bundled and what remains external.

Can I bundle multiple Node.js files and assets into a single CLI tool?

Yes, you can bundle multi-file Node.js inputs and assets into a single executable-like file, making it ideal for creating self-contained CLI tools and Docker images.

When do I need to bundle a Node.js project into a single portable file?

You need to bundle a Node.js project into a single file when you want to simplify distribution and deployment for serverless functions, CLI tools, or self-contained Docker images.

Are there limitations when bundling Node.js projects with native dependencies?

The bundling process handles standard Node.js modules and assets, but you must specify native or external dependencies via standard ncc options to prevent build failures and ensure portability.