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

Support ES6 #22

Open
serjek opened this issue May 18, 2020 · 1 comment
Open

Support ES6 #22

serjek opened this issue May 18, 2020 · 1 comment

Comments

@serjek
Copy link

serjek commented May 18, 2020

es5 compiles just fine, but -D js-es=6 causes following compile error:

/haxe_libraries/coconut.ui/0.11.2/github/a2987279f3b189e5a02d31a46837d765250c7ca5/src/coconut/ui/macros/ViewBuilder.hx:797: characters 20-77 : Must call `super()` constructor before accessing `this` in classes derived from an extern class with constructor

Having es6 support would be super-nice since most modern RN components have API and examples described in es6 already and it takes a while to debug them with current es5 output.

@back2dos back2dos transferred this issue from MVCoconut/coconut.ui Aug 17, 2020
back2dos added a commit that referenced this issue Aug 17, 2020
@back2dos
Copy link
Member

@serjek @kevinresol I've made a relatively crude workaround that does seem to work with react-dom. Can you please confirm that this works with react-native? The haxe_libraries from coconut.ui should do the trick.

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

No branches or pull requests

2 participants