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 a9dca47
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 @@ -797,6 +797,7 @@ export default class ExpressionParser extends LValParser {
}

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

0 comments on commit a9dca47

Please sign in to comment.