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.