Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27166] CLI: re-enable removal of dead code on minification

GitHub Issuen/a
TypeBug
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsCLI
LabelsengSchedule
ReporterChristopher Williams
AssigneeChristopher Williams
Created2019-06-19T12:54:43.000+0000
Updated2020-07-17T13:30:22.000+0000

Description

When we minify projects we explicitly turned off two options in the minified: "mangling" and "dead code elimination". The first renames variables to shorter names. The second removes chunks of code that should not be reached. We turned both of these off to "fix" TIMOB-25573, but I believe that we should revisit and see if this is still an issue. Ideally we'd try to turn these options back on, especially since we'd like to move more aggressive optimizations from Alloy into the SDK core build for inlining true/false for platform/deploy type/distribution variables/guards.

Comments

No comments

JSON Source