aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-21 18:03:27 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-21 18:03:27 -0700
commit7d6b5f5358617f92ace6f3103dd835ddff73f92a (patch)
tree69de85c71a45764170876c2ca8d74e0bdba53956 /src
parent9423693a6eb68b744473632845387d306e58f914 (diff)
downloadbun-7d6b5f5358617f92ace6f3103dd835ddff73f92a.tar.gz
bun-7d6b5f5358617f92ace6f3103dd835ddff73f92a.tar.zst
bun-7d6b5f5358617f92ace6f3103dd835ddff73f92a.zip
Fix `minify: true` not applying to identifiers
Diffstat (limited to '')
-rw-r--r--src/bun.js/api/JSBundler.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/api/JSBundler.zig b/src/bun.js/api/JSBundler.zig
index a89001868..1149880fe 100644
--- a/src/bun.js/api/JSBundler.zig
+++ b/src/bun.js/api/JSBundler.zig
@@ -121,7 +121,7 @@ pub const JSBundler = struct {
if (hot.isBoolean()) {
this.minify.whitespace = hot.coerce(bool, globalThis);
this.minify.syntax = this.minify.whitespace;
- this.minify.identifiers = this.minify.identifiers;
+ this.minify.identifiers = this.minify.whitespace;
} else if (hot.isObject()) {
if (try hot.getOptional(globalThis, "whitespace", bool)) |whitespace| {
this.minify.whitespace = whitespace;