diff options
author | 2023-07-19 23:59:15 -0700 | |
---|---|---|
committer | 2023-07-19 23:59:15 -0700 | |
commit | 53ad9b922f17de5568a1303ade1d82b49afae120 (patch) | |
tree | a511b84021d6901912d0ca71c6a13a4ad132c858 /docs/cli | |
parent | 0b365781a8ddbea40ec3259e5bf0435c9aebc0a6 (diff) | |
download | bun-53ad9b922f17de5568a1303ade1d82b49afae120.tar.gz bun-53ad9b922f17de5568a1303ade1d82b49afae120.tar.zst bun-53ad9b922f17de5568a1303ade1d82b49afae120.zip |
Docs & types for 0.7 (#3665)
* Docs & types for 0.7
* Tweak
* Update
* Tweaks
* Tweak
* Tweaks
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
Diffstat (limited to 'docs/cli')
-rw-r--r-- | docs/cli/run.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/cli/run.md b/docs/cli/run.md index 1398e10ca..60061ee5c 100644 --- a/docs/cli/run.md +++ b/docs/cli/run.md @@ -32,6 +32,26 @@ The "naked" `bun` command is equivalent to `bun run`. $ bun index.tsx ``` +### `--watch` + +To run a file in watch mode, use the `--watch` flag. + +```bash +$ bun --watch run index.tsx +``` + +### `--smol` + +{% callout %} +Added in Bun v0.7.0. +{% /callout %} + +In memory-constrained environments, use the `--smol` flag to reduce memory usage at a cost to performance. + +```bash +$ bun --smol run index.tsx +``` + ## Run a `package.json` script {% note %} |