aboutsummaryrefslogtreecommitdiff
path: root/src/cli.zig
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-05-11 17:42:54 -0400
committerGravatar GitHub <noreply@github.com> 2023-05-11 14:42:54 -0700
commit6a163cf933542506354dc836bd92693bcae5939b (patch)
tree2eaeee9cddeb930792b96de6ed040a9877ebc318 /src/cli.zig
parent02cad591f8c56f801fb9ccc480bf9547484144c2 (diff)
downloadbun-6a163cf933542506354dc836bd92693bcae5939b.tar.gz
bun-6a163cf933542506354dc836bd92693bcae5939b.tar.zst
bun-6a163cf933542506354dc836bd92693bcae5939b.zip
bundler tests and improve `Bun.build` return type (#2833)
* importstar_ts * tests * run acorn test suite * bench tweaks * test * bun.build tests very incomplete * remove dataurl and base64 loaders from tests since they dont work yet * tests * stuff * stuff * add errors and array of blobs * work so far * docs * requested changes * fix overwrite docs * remove this file
Diffstat (limited to 'src/cli.zig')
-rw-r--r--src/cli.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli.zig b/src/cli.zig
index 171593246..ff4c847c6 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -204,7 +204,7 @@ pub const Arguments = struct {
clap.parseParam("--chunk-naming <STR> Customize chunk filenames. Defaults to \"[name]-[hash].[ext]\"") catch unreachable,
clap.parseParam("--asset-naming <STR> Customize asset filenames. Defaults to \"[name]-[hash].[ext]\"") catch unreachable,
clap.parseParam("--server-components Enable React Server Components (experimental)") catch unreachable,
- clap.parseParam("--transform Single file transform, do not bundle") catch unreachable,
+ clap.parseParam("--transpile Transpile file only, do not bundle") catch unreachable,
};
// TODO: update test completions
@@ -477,7 +477,7 @@ pub const Arguments = struct {
ctx.bundler_options.minify_identifiers = minify_flag or args.flag("--minify-identifiers");
if (cmd == .BuildCommand) {
- ctx.bundler_options.transform_only = args.flag("--transform");
+ ctx.bundler_options.transform_only = args.flag("--transpile");
if (args.option("--outdir")) |outdir| {
if (outdir.len > 0) {