mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Use winston
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import * as ts from 'typescript';
|
||||
import { Logger } from '../../logger';
|
||||
import { convertValueToLiteral, getDecorator, getDecoratorArgs, getDecoratorName } from '../helpers';
|
||||
import { transformMembers } from './members';
|
||||
|
||||
function transformClass(cls: any, ngcBuild?: boolean) {
|
||||
|
||||
console.time('~ transformClass: ' + cls.name.text);
|
||||
Logger.profile((ngcBuild ? '[ngc]' : '[esm]') + 'transformClass: ' + cls.name.text);
|
||||
|
||||
const pluginStatics = [];
|
||||
const dec: any = getDecorator(cls);
|
||||
@@ -37,7 +38,7 @@ function transformClass(cls: any, ngcBuild?: boolean) {
|
||||
]
|
||||
);
|
||||
|
||||
console.timeEnd('~ transformClass: ' + cls.name.text);
|
||||
Logger.profile((ngcBuild ? '[ngc]' : '[esm]') + 'transformClass' + cls.name.text);
|
||||
return cls;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user