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 }