-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
[js] Generate export with @:expose and -D js-es=6 #10003
base: development
Are you sure you want to change the base?
Conversation
Also add support for export default
match args with | ||
| [ EConst (String("default",_)), _ ] -> print ctx "export default "; | ||
| [] -> print ctx "export "; | ||
| _ -> abort "Invalid @:expose parameters" pos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what to do in this case, since @:export('something')
was valid until now and still has some use here.
Maybe this feature would be better with a @:export
meta instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think @:expose('CustomName') class Test{}
should be generated as class Test {}; export {Test as CustomName}
This I guess what we want nowadays is something like |
Glad that things are moving here..! :-) |
Hello all, I'd like to contribute to moving this forward. It's not clear to me from this message thread what this PR is missing to be merged |
Closes #8033
Edit: hmm this doesn't work with the closure
-D js-classic
?