# \#es6

**URL:** https://community.haxe.org/tag/es6/74.md

[Latest](https://community.haxe.org/latest.md) · [Categories](https://community.haxe.org/categories.md) · [Tags](https://community.haxe.org/tags.md)

---

## [Import ES6 modules](https://community.haxe.org/t/import-es6-modules/2533)

<div class="topic-metadata">

**Author:** [@RedHeadEatBread](https://community.haxe.org/u/RedHeadEatBread)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 9:28am UTC](https://community.haxe.org/t/import-es6-modules/2533 "2020-06-23T09:28:28Z")

</div>

How to force Haxe to bind js modules using an import operator, instead of a function require?

---

## [Best way(s) to currently target Haxe code to Typescript/ES6 frameworks](https://community.haxe.org/t/best-way-s-to-currently-target-haxe-code-to-typescript-es6-frameworks/1504)

<div class="topic-metadata">

**Author:** [@fullofcaffeine](https://community.haxe.org/u/fullofcaffeine)\
**Replies:** 5\
**Last updated:** [May 24, 2020, 7:32am UTC](https://community.haxe.org/t/best-way-s-to-currently-target-haxe-code-to-typescript-es6-frameworks/1504 "2020-05-24T07:32:41Z")

</div>

As much as I’d love to only use pure-Haxe frameworks or existing externs/libs like the excellent haxe-react or tink libraries, sometimes it makes more business sense to leverage a framework that’s more popular/mainstream…

---

## [How to add decorators from es6 extern?](https://community.haxe.org/t/how-to-add-decorators-from-es6-extern/2457)

<div class="topic-metadata">

**Author:** [@Zhan](https://community.haxe.org/u/Zhan)\
**Replies:** 10\
**Last updated:** [May 22, 2020, 4:47pm UTC](https://community.haxe.org/t/how-to-add-decorators-from-es6-extern/2457 "2020-05-22T16:47:27Z")

</div>

how to add decorators from es6 extern? /// const {ccclass, property} = cc.\_decorator; @ccclass //how to do the same thing in haxe? export default class NewClass extends cc.Component { @property(cc.Label) /…

---

## [ES6 class generation for Haxe/JS is here! (testers needed)](https://community.haxe.org/t/es6-class-generation-for-haxe-js-is-here-testers-needed/1538)

<div class="topic-metadata">

**Author:** [@nadako](https://community.haxe.org/u/nadako)\
**Replies:** 15\
**Last updated:** [March 25, 2019, 5:04pm UTC](https://community.haxe.org/t/es6-class-generation-for-haxe-js-is-here-testers-needed/1538 "2019-03-25T17:04:09Z")

</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 (also installable with Lix) and can…
