You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by "jshbrntt (via GitHub)" <gi...@apache.org> on 2025/12/31 20:11:13 UTC
Re: [I] Compiling for prod generate error from debug-js [royale-asjs]
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: issues-unsubscribe@royale.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org