Skip to content

Commit

Permalink
refactor(parser)!: treat unambiguous files containing TS export assig…
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Oct 3, 2024
1 parent 4f6bc79 commit 32d972e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/oxc_parser/src/js/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ impl<'a> ParserImpl<'a> {
self.expect(Kind::Eq)?;
let expression = self.parse_assignment_expression_or_higher()?;
self.asi()?;
self.set_source_type_to_module_if_unambiguous();
Ok(self.ast.alloc_ts_export_assignment(self.end_span(start_span), expression))
}

Expand Down

0 comments on commit 32d972e

Please sign in to comment.