I don't know what Magento ecommerce uses, but I know what JavaScript compilers are there.
Precompiled JavaScript is not practical, as various JavaScript interpreters will have their own compilation method. Therefore, when most people talk about JavaScript compilation, they usually refer to Minified JavaScript.
However, the last minifiers go beyond. A good example is the Google Closure Compiler Advanced Mode . This is related to the Google Closure Library and Tools , but well designed, even if it is used by itself.
There is an Online Demo of Closure Compiler .
, , minifier, JavaScript . :
function hello(name) {
alert('Hello, ' + name);
}
hello('New user');
alert("Hello, New user"); . , .
. , JavaScript. hello. , JavaScript .
, , , -, C Java. , Perl.