MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / error

Function error

packages/webpack5/src/helpers/log.ts:14–25  ·  view source on GitHub ↗
(...data: any)

Source from the content-addressed store, hash-verified

12}
13
14export 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
27export function warn(...data: any): void {
28 console.warn(`[@nativescript/webpack] Warn: \n`, ...cleanup(data));

Callers 6

resolveChainableConfigFunction · 0.90
resolveConfigFunction · 0.90
getPlatformNameFunction · 0.90
determineProjectFlavorFunction · 0.90
patchVueLoaderForHMRFunction · 0.90
getSvelteConfigFunction · 0.90

Calls 2

cleanupFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected