isDev
True in development builds; false in production builds where __DEV__ is compiled away.
True in development builds; false in production builds where __DEV__ is compiled away. The
development export condition selects the development build. Use it to guard checks and logging
meant for development only.
Import#
ts
import { isDev } from "@shadow-js/core";
Signature#
ts
const isDev: boolean
Examples#
ts
import { isDev } from "@shadow-js/core";
if (isDev) console.info("debug panel enabled");