jshbrntt commented on issue #275:
URL: https://github.com/apache/royale-asjs/issues/275#issuecomment-3702840646

   Apparently some of the Closure compiler optimizations break namespaces, you 
need these additional complier options to fix these errors.
   
   - `-js-output-optimization=skipAsCoercions`
   - `-js-compiler-option+=--compilation_level=WHITESPACE_ONLY`
   
   **Full `asconfig.json` for context**
   ```json
   {
       "config": "js",
       "type": "app",
       "compilerOptions": {
           "output": "./",
           "html-template": "template.html",
           "source-path": [
               "src"
           ],
           "external-library-path": [
               "node_modules/openfl/dist/openfl.swc",
               "node_modules/starling-framework/dist/starling.swc"
           ],
           "source-map": true,
           "targets": [
               "JS"
           ]
       },
       "additionalOptions": [
           "-js-getter-prefix=get_",
           "-js-setter-prefix=set_",
           "-js-output-optimization=skipAsCoercions",
           "-js-compiler-option+=--compilation_level=WHITESPACE_ONLY"
       ],
       "mainClass": "Main"
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to