[js] Generate export with @:expose and -D js-es=6
Closes #8033
Edit: hmm this doesn't work with the closure
- [x] Only with
-D js-classic? - [x] Allow to expose default?
This js-classic stuff is a bit confusing. Surely es6 exports are modern, not classic ^^
I guess what we want nowadays is something like -D js-module-kind=classic|closure|es6?
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
Is this planned to be on Haxe 5? :) It's a significant improvement on ergonomics for JS/TS projects consuming Haxe libraries.
Not planned at the moment, but could still happen.
I'm not sure this PR is enough to handle #8033 since we're still not generating "proper" es6 classes etc. :thinking: