MCPcopy Create free account
hub / github.com/clayrisser/create-react-renderer / isDev

Function isDev

phaseL/src/dev.ts:3–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1const { env } = process;
2
3function isDev(): boolean {
4 if (typeof env.NODE_ENV === "undefined") {
5 return typeof env.__DEV__ === "undefined" ? false : env.__DEV__.toLowerCase() !== "false";
6 }
7 return env.NODE_ENV.toLowerCase() !== "prod" && env.NODE_ENV.toLowerCase() !== "production";
8}
9
10export default isDev();

Callers 1

dev.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected