I can't replicate this any more, but at one point the lux.min.js output size increased because Terser stopped minifying/mangling the LogEvent and Flags property names. This change uses const enums rather than plain objects, so TypeScript never outputs the property names.
I can't replicate this any more, but at one point the lux.min.js output size increased because Terser stopped minifying/mangling the
LogEvent
andFlags
property names. This change uses const enums rather than plain objects, so TypeScript never outputs the property names.