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

Commit dd5cd20

Browse files
author
Kai Cataldo
committed
Pass filename to babelCore#parse
1 parent d781b53 commit dd5cd20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/parse.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = function(code, options) {
77
const opts = {
88
sourceType: options.sourceType,
99
configFile: options.configFile,
10+
filename: options.filePath,
1011
parserOpts: {
1112
allowImportExportEverywhere: options.allowImportExportEverywhere, // consistent with espree
1213
allowReturnOutsideFunction: true,

0 commit comments

Comments
 (0)