diff --git a/lib/parse.js b/lib/parse.js index d0258a36..00286cf7 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -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,