aharui commented on issue #36: Slow Compiler Build Time
URL: https://github.com/apache/royale-compiler/issues/36#issuecomment-377362123
 
 
   You can think of a SWC as a way to swap in JS for AS.  In your app, AS will 
be transpiled and end up in the output.  Any AS in a SWC does not, whatever you 
said was the JS representation for that AS class goes in the output.  However, 
Google Closure Compiler may have some restrictions on the formatting of that JS 
file.
   
   If your goal is minification, you will probably need to have that JS comply 
with Google's code style which does allow inheritance.
   
   If your goal is only a single network fetch, I think you can just append the 
Animate JS files to the final minified .js file.  At that point, JS is just JS. 
 Only the browser is going to read it.
   
   Right now, by converting the JS to AS and back to JS, it isn't clear you are 
benefitting a lot from that double conversion.  The body of the Green Circle 
constructor is going to be correct JS.  Royale is mainly trying to help folks 
who are manually modifying AS get the best JS output and catch their mistakes 
early.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to