()
| 1 | const { env } = process; |
| 2 | |
| 3 | function 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 | |
| 10 | export default isDev(); |