diff options
author | 2023-04-15 05:17:12 -0700 | |
---|---|---|
committer | 2023-04-15 05:17:12 -0700 | |
commit | df88b998d682ec4ca4ee77e64fbf6efc5d8cf9fa (patch) | |
tree | 1acd205a7f302b284b21300834c6413991aa5cab /src/cli.zig | |
parent | b687c3ab886c19c4e933586bbb922a3c2e00456f (diff) | |
download | bun-df88b998d682ec4ca4ee77e64fbf6efc5d8cf9fa.tar.gz bun-df88b998d682ec4ca4ee77e64fbf6efc5d8cf9fa.tar.zst bun-df88b998d682ec4ca4ee77e64fbf6efc5d8cf9fa.zip |
Mostly implement cross-module constant inlining, but disable it
There are some test failures
Diffstat (limited to 'src/cli.zig')
-rw-r--r-- | src/cli.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cli.zig b/src/cli.zig index 674aeac02..2a368fc39 100644 --- a/src/cli.zig +++ b/src/cli.zig @@ -199,6 +199,8 @@ pub const Arguments = struct { clap.parseParam("--server-components Enable React Server Components (experimental)") catch unreachable, clap.parseParam("--splitting Split up code!") catch unreachable, clap.parseParam("--transform Do not bundle") catch unreachable, + clap.parseParam("--minify-syntax Minify syntax and inline data (experimental)") catch unreachable, + clap.parseParam("--minify-whitespace Minify whitespace (experimental)") catch unreachable, }; // TODO: update test completions @@ -499,6 +501,8 @@ pub const Arguments = struct { if (cmd == .BuildCommand) { ctx.bundler_options.transform_only = args.flag("--transform"); + ctx.bundler_options.minify_syntax = args.flag("--minify-syntax"); + ctx.bundler_options.minify_whitespace = args.flag("--minify-whitespace"); if (args.option("--outdir")) |outdir| { if (outdir.len > 0) { ctx.bundler_options.outdir = outdir; @@ -912,6 +916,8 @@ pub const Command = struct { react_server_components: bool = false, code_splitting: bool = false, transform_only: bool = false, + minify_syntax: bool = false, + minify_whitespace: bool = false, }; const _ctx = Command.Context{ |