From bf90c3ad7e2a709cc9b889757e5123e879ab97c7 Mon Sep 17 00:00:00 2001 From: ezolenko Date: Sun, 5 Mar 2017 23:10:52 -0700 Subject: [PATCH] - debug/info messages in transform go to console --- dist/rollup-plugin-typescript2.cjs.js | 4 ++-- dist/rollup-plugin-typescript2.es.js | 4 ++-- src/rollupcontext.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/rollup-plugin-typescript2.cjs.js b/dist/rollup-plugin-typescript2.cjs.js index 727c8f0..6ac3a77 100644 --- a/dist/rollup-plugin-typescript2.cjs.js +++ b/dist/rollup-plugin-typescript2.cjs.js @@ -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; }()); diff --git a/dist/rollup-plugin-typescript2.es.js b/dist/rollup-plugin-typescript2.es.js index 83ec141..af23f94 100644 --- a/dist/rollup-plugin-typescript2.es.js +++ b/dist/rollup-plugin-typescript2.es.js @@ -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; }()); diff --git a/src/rollupcontext.ts b/src/rollupcontext.ts index 240f1aa..08d3214 100644 --- a/src/rollupcontext.ts +++ b/src/rollupcontext.ts @@ -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}`); } }