Skip to content

Commit 41afcb6

Browse files
committed
update
1 parent de7692a commit 41afcb6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/routes/reference/rendering/is-dev.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tags:
1010
- conditional
1111
version: "1.0"
1212
description: >-
13-
Read the development-mode boolean exported by `solid-js/web`.
13+
Read the boolean that indicates whether the imported `solid-js/web` bundle is the development browser bundle.
1414
---
1515

1616
`isDev` is a constant boolean exported by `solid-js/web`.
@@ -29,8 +29,7 @@ const isDev: boolean;
2929

3030
## Behavior
3131

32-
- `isDev` is `true` in the development browser bundle and `false` in production browser bundles.
33-
- `isDev` is `false` in the server bundle.
32+
- `isDev` is a bundle constant: it is `true` in the development browser bundle and `false` in production and server bundles. [`DEV`](/reference/rendering/dev) is a separate development-only export from `solid-js`.
3433
- Because it is exported as a constant, bundlers can eliminate unreachable branches.
3534

3635
## Examples
@@ -41,7 +40,7 @@ const isDev: boolean;
4140
import { isDev } from "solid-js/web";
4241

4342
if (isDev) {
44-
console.log("development browser bundle");
43+
debugPanel.mount();
4544
}
4645
```
4746

0 commit comments

Comments
 (0)