Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6334c8d commit 6f141a2Copy full SHA for 6f141a2
1 file changed
packages/babel-parser/src/parser/statement.js
@@ -1940,12 +1940,13 @@ export default class StatementParser extends ExpressionParser {
1940
} else if (node.specifiers && node.specifiers.length) {
1941
// Named exports
1942
for (const specifier of node.specifiers) {
1943
- const { exported, local } = specifier;
+ const { exported } = specifier;
1944
const exportedName =
1945
exported.type === "Identifier" ? exported.name : exported.value;
1946
this.checkDuplicateExports(specifier, exportedName);
1947
// $FlowIgnore
1948
- if (!isFrom && local) {
+ if (!isFrom && specifier.local) {
1949
+ const { local } = specifier;
1950
if (local.type === "StringLiteral") {
1951
this.raise(
1952
specifier.start,
0 commit comments