haxe icon indicating copy to clipboard operation
haxe copied to clipboard

[js] Generate export with @:expose and -D js-es=6

Open kLabz opened this issue 5 years ago • 5 comments

Closes #8033

Edit: hmm this doesn't work with the closure

  • [x] Only with -D js-classic?
  • [x] Allow to expose default?

kLabz avatar Dec 19 '20 10:12 kLabz

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?

nadako avatar Dec 20 '20 17:12 nadako

Glad that things are moving here..! :-)

cambiata avatar Dec 23 '20 12:12 cambiata

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

aisebastian avatar Jul 25 '23 09:07 aisebastian

Is this planned to be on Haxe 5? :) It's a significant improvement on ergonomics for JS/TS projects consuming Haxe libraries.

9Morello avatar Nov 18 '25 11:11 9Morello

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:

kLabz avatar Nov 20 '25 07:11 kLabz