Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Sep 20, 2022
1 parent b6d769e commit 612d89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/statement.ts
Expand Up @@ -2653,7 +2653,7 @@ export default abstract class StatementParser extends ExpressionParser {

parseMaybeImportReflection(node: Undone<N.ImportDeclaration>) {
let isImportReflection = false;
if (this.match(tt._module) && !this.state.containsEsc) {
if (this.isContextual(tt._module)) {
const lookahead = this.lookahead();
if (tokenIsIdentifier(lookahead.type)) {
if (lookahead.type !== tt._from) {
Expand Down

0 comments on commit 612d89c

Please sign in to comment.