Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
R32 opened this issue Jun 8, 2024 · 0 comments
Open

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

R32 opened this issue Jun 8, 2024 · 0 comments

Comments

@R32
Copy link
Contributor

R32 commented Jun 8, 2024

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();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant