mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
feat: external config loading
+refactor many pieces
This commit is contained in:
23
packages/webpack5/src/helpers/log.ts
Normal file
23
packages/webpack5/src/helpers/log.ts
Normal file
@ -0,0 +1,23 @@
|
||||
// todo: refine
|
||||
// export function error(message: string, info?: { possibleCauses?: string[] }) {
|
||||
// console.error(`
|
||||
// NativeScript Webpack encountered an error and cannot proceed with the build:
|
||||
//
|
||||
// ${message}
|
||||
//
|
||||
// Possible causes:
|
||||
// ${info?.possibleCauses?.map((cause) => `- ${cause}`).join('\n')}
|
||||
// `);
|
||||
// }
|
||||
|
||||
export function error(...data: any) {
|
||||
console.error(`[@nativescript/webpack]`, ...data);
|
||||
}
|
||||
|
||||
export function warn(...data: any) {
|
||||
console.warn(`[@nativescript/webpack]`, ...data);
|
||||
}
|
||||
|
||||
export function info(...data: any) {
|
||||
console.info(`[@nativescript/webpack]`, ...data);
|
||||
}
|
Reference in New Issue
Block a user