haxe
haxe copied to clipboard
Compiler.exclude() doesn't work for module-level fields
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();
}