Update define-constant.md

This commit is contained in:
Jarred Sumner
2024-04-23 14:26:21 -07:00
parent 1a17d7179c
commit d690504943

View File

@@ -51,6 +51,8 @@ if (true) {
And finally, Bun detects the `else` branch is not reachable, and eliminates it.
---
```ts
console.log("Production mode");
```
@@ -63,6 +65,8 @@ Values can be strings, identifiers, properties, or JSON.
To make all usages of `window` be `undefined`, you can use the following command.
---
```sh
bun --define window="undefined" src/index.ts
```