Changelog
v4.2.0
inline
, don't write it to a file.mangle.properties.undeclared
option was added. This enables the property mangler to mangle properties of variables which can be found in the name cache, but whose properties are not known to this Terser run.RegExp("\\\n")
includes an actual newline is now fixed.Changelog
v4.1.4
Changelog
v4.1.3
reduce_vars
option were fixed.Changelog
v4.1.1
Changelog
v4.1.0
Object.assign
, Array.prototype.some
, Array.prototype.find
and Array.prototype.every
.Changelog
v4.0.1
collapse_vars
when functions are created with the same name as a variable which already existsMutationObserverInit
(Object with options for initialising a mutation observer) properties to the DOM property listError
subclasses are now internally used instead of old-school Error inheritance hacks.Changelog
v4.0.0
variables
property of all scopes has become a standard JavaScript Map
as opposed to the old bespoke Dictionary
object.terser --help
was fixedArray
and new Array
keep_quoted=strict
mode to mangle_props, which behaves more like Google Closure Compiler by mangling all unquoted property names, instead of reserving quoted property names automatically.Changelog
v3.17.0
hasOwnProperty.call
new Array(<number>)
with an array literalSet
and the includes
method for strings and arrays