Skip to content

Commit

Permalink
Enable support for export star
Browse files Browse the repository at this point in the history
  • Loading branch information
SGrondin committed Aug 1, 2022
1 parent f5e1d62 commit aec9806
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parsing/js_ast.ml
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,10 @@ let strings_from_pug parsed source =
extract parsed statements)
| exception _ -> ()

let parse_options = Some { Parser_env.default_parse_options with esproposal_export_star_as = true }

let strings_from_js ~filename parsed js_file_errors source =
match Parser_flow.program source with
match Parser_flow.program ~parse_options source with
| _, (_ :: _ as errors) -> failwith (errors_to_string errors)
| ast, [] -> (
match ast with
Expand Down

0 comments on commit aec9806

Please sign in to comment.