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

Mangle option debug produces syntax error for private properties #5966

Open
AshleyScirra opened this issue Jan 6, 2025 · 0 comments
Open

Comments

@AshleyScirra
Copy link
Contributor

Uglify version (uglifyjs -V) 3.19.3

JavaScript input

class Test {
	#test;
}

The uglifyjs CLI command executed or minify() options used.

uglifyjs input.js --mangle-props debug --beautify --output output.js

JavaScript output or error produced.

class Test {
    #_$#test$_;
}

The output code is a syntax error because it includes the character # twice: the private property was renamed to #_$#test$_ instead of #_$test$_.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant