Skip to content

Commit

Permalink
@:keep classes built with IDataItem
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Apr 29, 2024
1 parent 104b8ad commit cb54f6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions haxe/ui/macros/Macros.hx
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,8 @@ class Macros {

static function buildData():Array<Field> {
var builder = new ClassBuilder(haxe.macro.Context.getBuildFields(), Context.getLocalType(), Context.currentPos());
builder.addMeta(":keep");
builder.addMeta(":keepSub");
#if macro_times_verbose
var stopComponentTimer = Context.timer(builder.fullPath);
#end
Expand Down

0 comments on commit cb54f6b

Please sign in to comment.