diff options
author | 2023-06-02 14:24:16 -0700 | |
---|---|---|
committer | 2023-06-02 14:24:16 -0700 | |
commit | bfd315fc72749ecd98150de110f2a9cc586c7293 (patch) | |
tree | f31eb78df5d01a683c3022ce04a122d1dbf6e81e /src/bundler.zig | |
parent | 72c2123e07c936d1c279c5f4effb096f24bc1f58 (diff) | |
download | bun-bfd315fc72749ecd98150de110f2a9cc586c7293.tar.gz bun-bfd315fc72749ecd98150de110f2a9cc586c7293.tar.zst bun-bfd315fc72749ecd98150de110f2a9cc586c7293.zip |
Support `NO_COLOR` environment variable (#3055)
Diffstat (limited to 'src/bundler.zig')
-rw-r--r-- | src/bundler.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bundler.zig b/src/bundler.zig index ea8222870..c2cec56c1 100644 --- a/src/bundler.zig +++ b/src/bundler.zig @@ -532,8 +532,9 @@ pub const Bundler = struct { else => {}, } - if (this.env.map.get("DISABLE_BUN_ANALYTICS")) |should_disable| { - if (strings.eqlComptime(should_disable, "1")) { + if (this.env.map.get("DO_NOT_TRACK")) |dnt| { + // https://do-not-track.dev/ + if (strings.eqlComptime(dnt, "1")) { Analytics.disabled = true; } } |