Skip to content

ncc build generating multiple index.js files instead of a single bundle after upgrading Node.js #1292

Description

@sureshrucko

After updating my Node.js version to v22.18.0, I’ve noticed that running NCC (@vercel/ncc) version 0.38.3 now produces multiple index.js files in the output directory instead of a single bundled file as it did before.

Previously, the same command produced only one index.js file.

Node.js version: v22.18.0

@vercel/ncc version: 0.38.3

os: windows

Command used:
npx ncc build src/main.ts -o dist

Output:

3kB  dist\906.index.js
5kB  dist\218.index.js
9kB  dist\135.index.js
9kB  dist\949.index.js
11kB  dist\215.index.js
15kB  dist\164.index.js
39kB  dist\953.index.js
54kB  dist\270.index.js
63kB  dist\840.index.js
26989kB  dist\index.js

The same build on older Node.js versions (e.g., 20.x) produced a single file as expected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions