haxe icon indicating copy to clipboard operation
haxe copied to clipboard

Compiler.exclude() doesn't work for module-level fields

Open R32 opened this issue 1 year ago • 0 comments

Main.hx

function main() {
	foo();
}

Foo.hx

function foo() {
	trace("hello foo");
}

build.hxml

haxe --main Main --js out.js --macro exclude('Foo')

output :

function Foo_foo() {
	console.log("src/Foo.hx:4:","foo");
}
function Main_main() {
	Foo_foo();
}

R32 avatar Jun 08 '24 11:06 R32