Skip to content

Commit

Permalink
fix flow error
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jun 14, 2022
1 parent b17c0a3 commit 669b4bb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/babel-parser/src/parser/statement.js
Expand Up @@ -2425,11 +2425,9 @@ export default class StatementParser extends ExpressionParser {
| N.ExportNamedDeclaration
| N.ImportDeclaration,
) {
if (this.isJSONModuleImport(node)) {
if (this.isJSONModuleImport(node) && node.type !== "ExportAllDeclaration") {
const { specifiers } = node;
if (specifiers == null) {
// ExportAllDeclaration
} else {
if (node.specifiers != null) {
const nonDefaultNamedSpecifier = specifiers.find(specifier => {
let imported;
if (specifier.type === "ExportSpecifier") {
Expand Down

0 comments on commit 669b4bb

Please sign in to comment.