You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closing as by design. Property mangling in esbuild is a static analysis and requires you to use the properties statically, not dynamically. It's also intentionally designed to work similarly to other tools in the ecosystem.
I'm reopening this because Terser has since added a way to do this: prefixing a string literal with a /* @__KEY__ */ comment. More information here: terser/terser#1365. It seems reasonable to do this in esbuild as well.
Is it possible to obfuscate the same string with the property when obfuscating the property?
version
0.15.9
input
output
Expected result
The text was updated successfully, but these errors were encountered: