()
| 38 | } |
| 39 | |
| 40 | function lazyOption() { |
| 41 | // This will load `warningFile` only once. If the flag is not set, |
| 42 | // `warningFile` will be set to an empty string. |
| 43 | if (warningFile === undefined) { |
| 44 | const diagnosticDir = getOptionValue('--diagnostic-dir'); |
| 45 | const redirectWarnings = getOptionValue('--redirect-warnings'); |
| 46 | warningFile = diagnosticDir || redirectWarnings || ''; |
| 47 | } |
| 48 | return warningFile; |
| 49 | } |
| 50 | |
| 51 | // If we can't write to stderr, we'd like to make this a noop, |
| 52 | // so use console.error. |
no test coverage detected
searching dependent graphs…