-
-
Notifications
You must be signed in to change notification settings - Fork 879
Description
--keep-classnames Do not mangle/drop class names.
--keep-fnames Do not mangle/drop function names. Useful for
code relying on Function.prototype.name.
I'm not sure which one is better:
class Class {
}
esbuild --minify-identifiers --keep-names:
var c = Object.defineProperty;
var a = (s, l) => c(s, "name", { value: l, configurable: true });
class Class {
static {
a(this, "Class");
}
}
or just keep the name as is.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels