# ES6 class generation for Haxe/JS is here! (testers needed)

**URL:** <https://community.haxe.org/t/es6-class-generation-for-haxe-js-is-here-testers-needed/1538>\
**Category:** Announcements\
**Tags:** haxe-js, es6\
**Created:** [February 21, 2019, 9:30am UTC](https://community.haxe.org/t/es6-class-generation-for-haxe-js-is-here-testers-needed/1538 "2019-02-21T09:30:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![nadako](https://community.haxe.org/user_avatar/community.haxe.org/nadako/32/5_2.png) [@nadako](https://community.haxe.org/u/nadako)\
**Post date:** [February 21, 2019, 9:30am UTC](https://community.haxe.org/t/es6-class-generation-for-haxe-js-is-here-testers-needed/1538/1 "2019-02-21T09:30:46Z")

</div>

Hi, fellow users of the Haxe JavaScript target!

I just merged some code that makes Haxe/JS output ES6 classes instead of classic Function+prototype. It’s available in latest [nightlies](http://build.haxe.org/builds/haxe/) (also installable with [Lix](https://github.com/lix-pm/lix.client)) and can be activated with the `-D js-es=6` compiler argument.

 ![](https://community.haxe.org/uploads/default/original/1X/3c167868f04718df5b63951d373e6a31e450e55d.png)

We decided to include it in already Haxe 4.0, because ES6 class support is becoming critical nowadays, as they are not backwards-compatible with the classic inheritance style, making it impossible to use some ES6 libraries with Haxe.

We might look into adding more ES6 features usage for future versions, and meanwhile, the bravest ones are welcome to give it a try and give feedback!

> UPD: I just wrote [some documentation](https://gist.github.com/nadako/26ed6123e8fff9b942a05342cc2a423b) on this, describing limitations and required workarounds. Hopefully that will be part of the Haxe Manual soon enough!

---

_[View the full topic](https://community.haxe.org/t/es6-class-generation-for-haxe-js-is-here-testers-needed/1538)._
