()
| 95 | }; |
| 96 | |
| 97 | function enableDebug() { |
| 98 | // react-packager logs debug messages using the 'debug' npm package, and uses |
| 99 | // the following prefix throughout. |
| 100 | // To enable debugging, we need to set our pattern or append it to any |
| 101 | // existing pre-configured pattern to avoid disabling logging for |
| 102 | // other packages |
| 103 | var debugPattern = 'RNP:*'; |
| 104 | var existingPattern = debug.load(); |
| 105 | if (existingPattern) { |
| 106 | debugPattern += ',' + existingPattern; |
| 107 | } |
| 108 | debug.enable(debugPattern); |
| 109 | } |
| 110 | |
| 111 | function createServer(options: StrictOptions): Server { |
| 112 | // the debug module is configured globally, we need to enable debugging |
no test coverage detected
searching dependent graphs…