Skip to content

Commit

Permalink
Adds more debug logs for babel
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Feb 20, 2019
1 parent 56491b4 commit 0ceecd5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

<!-- Your comment below this -->

# 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][]
Expand Down
2 changes: 1 addition & 1 deletion source/runner/jsonToDSL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(",")
}
}

Expand Down
2 changes: 2 additions & 0 deletions source/runner/runners/utils/transpiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 0ceecd5

Please sign in to comment.