From 448b03c928a6e113390677ac26c59e94b2128829 Mon Sep 17 00:00:00 2001 From: Boris Serdiuk Date: Fri, 21 Mar 2025 12:49:32 +0100 Subject: [PATCH] Add documentation for `--save-bundle` flag --- packages/size-limit/create-help.js | 1 + packages/size-limit/test/__snapshots__/run.test.js.snap | 3 +++ 2 files changed, 4 insertions(+) diff --git a/packages/size-limit/create-help.js b/packages/size-limit/create-help.js index c28837b5..51d431bb 100644 --- a/packages/size-limit/create-help.js +++ b/packages/size-limit/create-help.js @@ -42,6 +42,7 @@ export default process => { ` ${y('--watch')} Runs in watch mode`, ` ${y('--silent')} Show only failed limits`, ` ${y('--debug')} Show internal configs for issue report`, + ` ${y('--save-bundle DIR')} Write output bundle to disk for manual review`, ` ${y('--version')} Display version` ) if (plugins.has('webpack')) { diff --git a/packages/size-limit/test/__snapshots__/run.test.js.snap b/packages/size-limit/test/__snapshots__/run.test.js.snap index 3a77fa17..ffbce5c6 100644 --- a/packages/size-limit/test/__snapshots__/run.test.js.snap +++ b/packages/size-limit/test/__snapshots__/run.test.js.snap @@ -223,6 +223,7 @@ Check the real performance cost of your front-end project to users --watch Runs in watch mode --silent Show only failed limits --debug Show internal configs for issue report + --save-bundle DIR Write output bundle to disk for manual review --version Display version Examples: @@ -323,6 +324,7 @@ Check the real performance cost of your front-end project to users --watch Runs in watch mode --silent Show only failed limits --debug Show internal configs for issue report + --save-bundle DIR Write output bundle to disk for manual review --version Display version Webpack options: @@ -554,6 +556,7 @@ Check the real performance cost of your front-end project to users --watch Runs in watch mode --silent Show only failed limits --debug Show internal configs for issue report + --save-bundle DIR Write output bundle to disk for manual review --version Display version Webpack options: