aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-05 23:08:11 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-05 23:08:11 -0700
commita7173d54ce674f1ea8b8beb455456a7836d317cb (patch)
treee73116d6a688dcf758aac25565439477158b4620 /README.md
parent3b10cfae804e7a94421acf2f1573241091480153 (diff)
downloadbun-jarred/analytics.tar.gz
bun-jarred/analytics.tar.zst
bun-jarred/analytics.zip
Update README.mdjarred/analytics
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0207b3c60..7ff31298d 100644
--- a/README.md
+++ b/README.md
@@ -516,6 +516,12 @@ Is generated like this:
The implementation details of this module ID hash will vary between versions of Bun. The important part is the metadata contains the module IDs, the package paths, and the package hashes so it shouldn't really matter in practice if other tooling wants to make use of any of this.
+### Environment variables
+
+- `GOMAXPROCS`: For `bun bun`, this sets the maximum number of threads to use. If you're experiencing an issue with `bun bun`, you try setting `GOMAXPROCS=1` to force it to be single-threaded
+- `DISABLE_BUN_ANALYTICS=1` this disables Bun's analytics. Bun records bundle timings (so we can answer with data, "is bun getting faster?") and feature usage (e.g. "are people actually using macros?"). The request body size is about 60 bytes, so it's not a lot of data
+- `TMPDIR`: Before `bun bun`, completes, it stores the new `.bun` in `$TMPDIR`. If unset, it defaults to the platform-specific temporary directory
+
# Credits
- While written in Zig instead of Go, Bun's JS transpiler, CSS lexer, and node module resolver source code is based off of @evanw's esbuild project. @evanw did a fantastic job with esbuild.