Skip to content

Commit

Permalink
Update caller name for @babel/core.parseSync
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Dec 6, 2019
1 parent f83e53f commit e51ed79
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eslint/babel-eslint-parser/src/parse.js
Expand Up @@ -34,7 +34,7 @@ export default function(code, options) {
plugins: ["estree"],
},
caller: {
name: "babel-eslint",
name: "@babel/eslint-parser",
},
};

Expand Down
1 change: 1 addition & 0 deletions packages/babel-parser/src/parser/expression.js
Expand Up @@ -798,6 +798,7 @@ export default class ExpressionParser extends LValParser {

if (this.hasPlugin("estree")) {
nodeType = "ImportExpression";
node.source = node.arguments[0];
}
}
return this.finishNode(node, nodeType);
Expand Down
@@ -1,3 +1,6 @@
{
"plugins": ["classProperties", ["decorators", { "decoratorsBeforeExport": false }]]
"plugins": [
"classProperties",
["decorators", { "decoratorsBeforeExport": false }]
]
}

0 comments on commit e51ed79

Please sign in to comment.