You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routes/reference/rendering/is-dev.mdx
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ tags:
10
10
- conditional
11
11
version: "1.0"
12
12
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.
14
14
---
15
15
16
16
`isDev` is a constant boolean exported by `solid-js/web`.
@@ -29,8 +29,7 @@ const isDev: boolean;
29
29
30
30
## Behavior
31
31
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`.
34
33
- Because it is exported as a constant, bundlers can eliminate unreachable branches.
0 commit comments