- debug/info messages in transform go to console

This commit is contained in:
ezolenko 2017-03-05 23:10:52 -07:00
parent 2d49f9e12e
commit bf90c3ad7e
3 changed files with 6 additions and 6 deletions

View File

@ -95,12 +95,12 @@ var RollupContext = (function () {
RollupContext.prototype.info = function (message) {
if (this.verbosity < VerbosityLevel.Info)
return;
this.context.warn("" + this.prefix + message);
console.log("" + this.prefix + message);
};
RollupContext.prototype.debug = function (message) {
if (this.verbosity < VerbosityLevel.Debug)
return;
this.context.warn("" + this.prefix + message);
console.log("" + this.prefix + message);
};
return RollupContext;
}());

View File

@ -100,12 +100,12 @@ var RollupContext = (function () {
RollupContext.prototype.info = function (message) {
if (this.verbosity < VerbosityLevel.Info)
return;
this.context.warn("" + this.prefix + message);
console.log("" + this.prefix + message);
};
RollupContext.prototype.debug = function (message) {
if (this.verbosity < VerbosityLevel.Debug)
return;
this.context.warn("" + this.prefix + message);
console.log("" + this.prefix + message);
};
return RollupContext;
}());

View File

@ -28,13 +28,13 @@ export class RollupContext implements IContext
{
if (this.verbosity < VerbosityLevel.Info)
return;
this.context.warn(`${this.prefix}${message}`);
console.log(`${this.prefix}${message}`);
}
public debug(message: string): void
{
if (this.verbosity < VerbosityLevel.Debug)
return;
this.context.warn(`${this.prefix}${message}`);
console.log(`${this.prefix}${message}`);
}
}