Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No empty export dump #6744

Merged
merged 3 commits into from
Apr 28, 2024
Merged

Conversation

DZakh
Copy link
Contributor

@DZakh DZakh commented Apr 28, 2024

- export {
- 
- }

@@ -70,7 +70,11 @@ let exports cxt f (idents : Ident.t list) =

(** Print module in ES6 format, it is ES6, trailing comma is valid ES6 code *)
let es6_export cxt f (idents : Ident.t list) =
let outer_cxt, reversed_list =
P.at_least_two_lines f;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really like to add a new line when there is no other output here, but that's the best way I could come up with to keep the /* Not a pure module */ comment display in a good way.

@zth zth requested a review from cristianoc April 28, 2024 09:47
@zth
Copy link
Collaborator

zth commented Apr 28, 2024

Very nice, I've thought about this before too 👍

@DZakh
Copy link
Contributor Author

DZakh commented Apr 28, 2024

It's kind of fun (and easy) to fix js dump issues, so I think I'd like to continue and fix them all 😁

@zth zth self-requested a review April 28, 2024 10:20
Copy link
Collaborator

@zth zth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep them coming!

@zth zth merged commit 17804a4 into rescript-lang:master Apr 28, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants