From 0ceecd52bbfbe1a6d50f9f3626505a04c3cb93a9 Mon Sep 17 00:00:00 2001 From: Orta Therox Date: Wed, 20 Feb 2019 08:08:14 -0500 Subject: [PATCH] Adds more debug logs for babel --- CHANGELOG.md | 4 ++++ source/runner/jsonToDSL.ts | 2 +- source/runner/runners/utils/transpiler.ts | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44126d8db..55f9ac0d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ +# 7.0.13 + +- Adds some Debug logs for babel transformation - [@orta][] + # 7.0.12 - Support multi-line import/require statements in Dangerfiles & possibly fix source-mapping for errors - [@fbartho][] diff --git a/source/runner/jsonToDSL.ts b/source/runner/jsonToDSL.ts index d18f8e8c3..4a733ec77 100644 --- a/source/runner/jsonToDSL.ts +++ b/source/runner/jsonToDSL.ts @@ -69,7 +69,7 @@ const apiForDSL = (dsl: DangerDSLJSONType): OctoKit | BitBucketServerAPI => { Object.keys(dsl.settings.github.additionalHeaders).length ) { if (dsl.settings.github.additionalHeaders.Accept) { - options.previews = [dsl.settings.github.additionalHeaders.Accept] + options.previews = dsl.settings.github.additionalHeaders.Accept.split(",") } } diff --git a/source/runner/runners/utils/transpiler.ts b/source/runner/runners/utils/transpiler.ts index bd88c9403..f5fcb4ad2 100644 --- a/source/runner/runners/utils/transpiler.ts +++ b/source/runner/runners/utils/transpiler.ts @@ -134,6 +134,8 @@ export const babelify = (content: string, filename: string, extraPlugins: string } const result = transformSync(content, fileOpts) + d("Result from Babel:") + d(result) return result.code }