Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Pass filename to babelCore#parse
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Dec 18, 2018
1 parent d781b53 commit dd5cd20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = function(code, options) {
const opts = {
sourceType: options.sourceType,
configFile: options.configFile,
filename: options.filePath,
parserOpts: {
allowImportExportEverywhere: options.allowImportExportEverywhere, // consistent with espree
allowReturnOutsideFunction: true,
Expand Down

0 comments on commit dd5cd20

Please sign in to comment.