Skip to content

Make ncc compatible with Node.js 24 #1297

@MikeMcC399

Description

@MikeMcC399

What would you like?

Provide @vercel/ncc with tested compatibility against Node.js 24 for macOS, Ubuntu and Windows

Why is this needed?

In the GitHub documentation Creating a JavaScript action, section Commit, tag, and push your action, it says:

Checking in your node_modules directory can cause problems. As an alternative, you can use tools such as rollup.js or @vercel/ncc to combine your code and dependencies into one file for distribution.

GitHub Actions runs.using for JavaScript actions provides for:

  • node20 for Node.js v20.
  • node24 for Node.js v24.

Currently .github/workflows/ci.yml tests against Node.js 18 and 20. It does not test against other supported Node.js release lines Node.js 22, 24 and 25.

Other

Attempting to simply update .github/workflows/ci.yml to cover Node.js 22 and 24 failed when testing against windows-latest. Failures were related to node-gyp compatibility.

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