mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
- debug/info messages in transform go to console
This commit is contained in:
parent
2d49f9e12e
commit
bf90c3ad7e
4
dist/rollup-plugin-typescript2.cjs.js
vendored
4
dist/rollup-plugin-typescript2.cjs.js
vendored
@ -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;
|
||||
}());
|
||||
|
||||
4
dist/rollup-plugin-typescript2.es.js
vendored
4
dist/rollup-plugin-typescript2.es.js
vendored
@ -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;
|
||||
}());
|
||||
|
||||
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user