diff --git a/docs/guides/runtime/define-constant.md b/docs/guides/runtime/define-constant.md index a07548bca7..6c08257fb5 100644 --- a/docs/guides/runtime/define-constant.md +++ b/docs/guides/runtime/define-constant.md @@ -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 ```