unminify: v0.2.0
0.2.0 (2024-03-02)
⚠ BREAKING CHANGES
- update the format of conflic name from
{name}$0
to{name}_1
Features
Inline common global variable references.
- const d = document;
- const c = d.createElement('canvas');
+ const c = document.createElement('canvas');
Rename variables based on object property access.
- const t = s.target;
- const p = t.parent;
- const v = p.value;
+ const s_target = s.target;
+ const s_target_parent = s_target.parent;
+ const s_target_parent_value = s_target_parent.value;
- add
un-parameter-rest
intoun-parameters
(92fec7f) - add
un-argument-spread
rule (1f5fbd6) - smart-inline: support global variable inlining and property access path renaming (1a91aa4)