From 84f8c52872621be2fe45d7d837f1e4cc06e8a490 Mon Sep 17 00:00:00 2001 From: LIU HANCHENG Date: Fri, 15 Nov 2024 14:00:46 +0800 Subject: [PATCH] fix: add missing `--asset-builds` to cli help message (#1228) The `-a, --asset-builds` do exists and is useful in some circumstances(https://github.com/vercel/ncc/issues/1049), but it seems that the cli help message does not contain its usage description ( while `README.md` has the description). This PR add the description of `--asset-builds` to the cli help message. --------- Co-authored-by: Steven --- src/cli.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli.js b/src/cli.js index e1c747e6..974c12c6 100755 --- a/src/cli.js +++ b/src/cli.js @@ -28,6 +28,8 @@ Options: -m, --minify Minify output -C, --no-cache Skip build cache population -s, --source-map Generate source map + -a, --asset-builds Build nested JS assets recursively, useful for + when code is loaded as an asset eg for workers. --no-source-map-register Skip source-map-register source map support -e, --external [mod] Skip bundling 'mod'. Can be used many times -q, --quiet Disable build summaries / non-error outputs