I’m doing some transformations with a build macro, and renaming some fields with the @:native
metadata. For example
@:native("AnotherName")
@:expose
class SomeClass {}
The generated JS output has this class named AnotherName
rather than SomeClass. But it is represented in the generated xml as
<class path="SomeClass" params="" file="SomeClass.hx">
<meta>
<m n=":native"><e>"AnotherName"</e></m>
<m n=":expose"/>
</meta>
</class>
While I need
<class path="AnotherName" params="" file="SomeClass.hx">
</class>
Is there a way to do this?