Skip to content

Commit

Permalink
- debug/info messages in transform go to console
Browse files Browse the repository at this point in the history
  • Loading branch information
ezolenko committed Mar 6, 2017
1 parent 2d49f9e commit bf90c3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/rollup-plugin-typescript2.cjs.js
Expand Up @@ -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;
}());
Expand Down
4 changes: 2 additions & 2 deletions dist/rollup-plugin-typescript2.es.js
Expand Up @@ -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;
}());
Expand Down
4 changes: 2 additions & 2 deletions src/rollupcontext.ts
Expand Up @@ -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}`);
}
}

0 comments on commit bf90c3a

Please sign in to comment.