You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2018/05/18 17:10:02 UTC

[GitHub] jgranick opened a new issue #240: Generated ${body} has an invalid class reference on release

jgranick opened a new issue #240: Generated ${body} has an invalid class reference on release
URL: https://github.com/apache/royale-asjs/issues/240
 
 
   When building for debug, `${head}` and `${body}` generate and run properly, but on release the `${body}` contains a class name that has been changed during release optimizations
   
   ```
   C:\Development\Haxe\starling\samples\demo_npm\as3>npm start -s
   MXMLJSC
   +royalelib=C:\Development\Haxe\starling\samples\demo_npm\as3\node_modules\@apache-royale\royale-js\royale-asjs\frameworks
   +configname=js
   --output=./
   --html-template=template.html
   --source-path+=src
   --external-library-path+=node_modules/openfl/dist/openfl.swc
   --external-library-path+=node_modules/starling-framework/dist/starling.swc
   --targets=js
   src/Main.as
   ```
   
   Both `debug` and `release` configurations generate `new Main()` for the body in the HTML template, but the `Main` class is renamed on release, and is not available in the window

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services