[Pas2js] DCE tool feature

warleyalex warleyalex at yahoo.com.br
Tue Feb 12 18:46:07 CET 2019


Just things that crosses my mind, and I want to discuss. Please don’t see
that as an attack to someone´s work. I really like pas2js and the new
possibilities.

Pas2js could include an experimental feature called DCE (dead code
elimination) tool. This tool allows to strip out unused properties,
functions from the static RTL and the classes from the generated JS. 

Running DCE takes a bit of extra time each build, and the output size does
not matter during development, but I think important at production to get a
small bundle JS possible. 

This DCE tool does not perform minification your code by removing
unnecessary whitespaces and shortening identifiers, for that, you should use
existing tools, like UglifyJS or Google Closure Compiler for this purpose.



--
Sent from: http://pas2js.38893.n8.nabble.com/


More information about the Pas2js mailing list