Skip to content

Commit

Permalink
Merged by Peril
Browse files Browse the repository at this point in the history
Specify filename when loading Babel options
  • Loading branch information
peril-staging[bot] committed Jan 4, 2019
2 parents 108741a + d3d8148 commit 76dea8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@

## Master

- Fix issue where the PR command could not be run with a GitHub Enterprise URL.

<!-- Your comment below this -->

- Fix issue where the PR command could not be run with a GitHub Enterprise URL.
- Specify filename when loading Babel options. Fixes [#664](https://github.com/danger/danger-js/issues/664) ([#804](https://github.com/danger/danger-js/pull/804)) - [@NMinhNguyen][]

# 7.0.1

- Make use of GitHub Checks optional and disabled by default, pass `--use-github-checks` to enable.
Expand Down Expand Up @@ -1489,7 +1490,9 @@ Not usable for others, only stubs of classes etc. - [@orta][]
[@patrickkempff]: https://github.com/patrickkempff
[@imorente]: https://github.com/imorente
[@langovoi]: https://github.com/langovoi
[@sebinsua]: https://github.com/sebinsua
[@randak]: https://github.com/randak
[@sajjadzamani]: https://github.com/sajjadzamani
[@cysp]: https://github.com/cysp
[@NMinhNguyen]: https://github.com/NMinhNguyen
[@davidbrunow]: https://github.com/davidbrunow
2 changes: 1 addition & 1 deletion source/runner/runners/utils/transpiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const babelify = (content: string, filename: string, extraPlugins: string
return content
}

const options = babel.loadOptions ? babel.loadOptions({}) : { plugins: [] }
const options = babel.loadOptions ? babel.loadOptions({ filename }) : { plugins: [] }

const fileOpts = {
filename,
Expand Down

0 comments on commit 76dea8e

Please sign in to comment.