aboutsummaryrefslogtreecommitdiff
path: root/src/cli.zig
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-05-24 18:33:28 -0700
committerGravatar GitHub <noreply@github.com> 2023-05-24 18:33:28 -0700
commit49729341895752f8817f444e9c87eaf4affa68bf (patch)
tree9c1fc60a6379e4bff8ab62ac27f5f2df1953a427 /src/cli.zig
parentd73bce058ab35b39838334f47e56fcea63db8e59 (diff)
downloadbun-49729341895752f8817f444e9c87eaf4affa68bf.tar.gz
bun-49729341895752f8817f444e9c87eaf4affa68bf.tar.zst
bun-49729341895752f8817f444e9c87eaf4affa68bf.zip
fix setting `jsxImportSource`, `jsxFactory`, and `jsxFragmentFactory` (#3057)
* default automatic, merge jsx flags from multiple tsconfigs * use entire package name * some tests * more tests
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 606e0a3cc..0ad948ac7 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -712,7 +712,7 @@ pub const Arguments = struct {
.factory = constStrToU8(jsx_factory orelse &default_factory),
.fragment = constStrToU8(jsx_fragment orelse &default_fragment),
.import_source = constStrToU8(jsx_import_source orelse &default_import_source),
- .runtime = if (jsx_runtime != null) try resolve_jsx_runtime(jsx_runtime.?) else Api.JsxRuntime.automatic,
+ .runtime = if (jsx_runtime) |runtime| try resolve_jsx_runtime(runtime) else Api.JsxRuntime.automatic,
.development = false,
.react_fast_refresh = react_fast_refresh,
};
@@ -721,7 +721,7 @@ pub const Arguments = struct {
.factory = constStrToU8(jsx_factory orelse opts.jsx.?.factory),
.fragment = constStrToU8(jsx_fragment orelse opts.jsx.?.fragment),
.import_source = constStrToU8(jsx_import_source orelse opts.jsx.?.import_source),
- .runtime = if (jsx_runtime != null) try resolve_jsx_runtime(jsx_runtime.?) else opts.jsx.?.runtime,
+ .runtime = if (jsx_runtime) |runtime| try resolve_jsx_runtime(runtime) else opts.jsx.?.runtime,
.development = false,
.react_fast_refresh = react_fast_refresh,
};