(fn: () => string | undefined)
| 148 | // chaining because some bundlers search for `process.env.SOMETHING` as a string |
| 149 | // and replace it with its value. |
| 150 | function readEnv(fn: () => string | undefined) { |
| 151 | try { |
| 152 | return fn() |
| 153 | } catch { |
| 154 | return null |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | function getDefaultValue<T>(def: DebugFlagDef<T>): T { |
| 159 | const env = |
no test coverage detected
searching dependent graphs…