Skip to content

Commit

Permalink
transform module imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mununki committed Oct 10, 2023
1 parent b5d902b commit 40851c8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jscomp/frontend/bs_builtin_ppx.ml
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,10 @@ let rec structure_mapper ~await_context (self : mapper) (stru : Ast_structure.t)
{txt = safe_module_type_name; loc}
~typ:(Mty.typeof_ ~loc me)))
:: aux expr)
| Pexp_fun (_, _, _, expr) -> aux expr
| Pexp_let (_, vbs, expr) -> aux expr @ spelunk_vbs acc vbs
| Pexp_ifthenelse (_, then_expr, Some else_expr) ->
aux then_expr @ aux else_expr
| Pexp_fun (_, _, _, expr) | Pexp_newtype (_, expr) -> aux expr
| _ -> acc
in
aux pvb_expr @ spelunk_vbs acc tl
Expand Down
17 changes: 17 additions & 0 deletions jscomp/test/Import.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 40851c8

Please sign in to comment.