vercel/ncc

would you be open to support node[[X].Y] as target to make GitHub Action build artifacts smaller?

Open

#1.247 aberto em 27 de jan. de 2025

Ver no GitHub
 (6 comments) (1 reaction) (0 assignees)JavaScript (273 forks)batch import
help wanted

Métricas do repositório

Stars
 (8.841 stars)
Métricas de merge de PR
 (Mesclagem média 31d 15h) (7 fundiu PRs em 30d)

Description

in the light of 1246 I discovered default target is es2025 and it only es* targets are expected. underlying webpack does support node* as a target, but ncc restricts it. but using es version as a target doesn't make sense for nodejs versions, because es support is fragmented.

I'd like to relax es* only target restriction to include node* as well, to make GitHub Action build artifacts smaller by not transpiling everything to es2015 but rather only to what's missing in node20 for example

Guia do colaborador