(...data: any)
| 12 | } |
| 13 | |
| 14 | export function error(...data: any): Error { |
| 15 | console.warn(`[@nativescript/webpack] Error: \n`, ...cleanup(data)); |
| 16 | |
| 17 | // we return the error - the caller can throw or ignore |
| 18 | if (typeof data[0] === 'string') { |
| 19 | return new Error( |
| 20 | '\n\n[@nativescript/webpack]\n---\n\n' + dedent(data[0]) + '\n\n---\n', |
| 21 | ); |
| 22 | } |
| 23 | |
| 24 | return new Error('@nativescript/webpack ran into a problem...'); |
| 25 | } |
| 26 | |
| 27 | export function warn(...data: any): void { |
| 28 | console.warn(`[@nativescript/webpack] Warn: \n`, ...cleanup(data)); |
no test coverage detected