The problem with this setup is that COMPILE::JS blocks do not make it into the JS code in the swc.
I’ve had trouble getting the scw built with COMPILE::JS block intact. This works in ant to build a valid swc: https://github.com/unhurdle/spectrum-royale/blob/master/Spectrum/build.xml But this does not work in asconfgic: https://github.com/unhurdle/spectrum-royale/blob/master/Spectrum/asconfig.json I have not yet figured out the correct asconfigc settings to make this work. > On May 20, 2022, at 7:46 PM, Josh Tynjala <joshtynj...@bowlerhat.dev> wrote: > > Here's a basic example asconfig.json for a JS SWC library that I found in > one of my old projects: > > https://paste.apache.org/c0rsu > > -- > Josh Tynjala > Bowler Hat LLC <https://bowlerhat.dev> > > > On Fri, May 20, 2022 at 2:05 AM Hugo Ferreira <hferreira...@gmail.com> > wrote: > >> Hi, >> >> I'm usin VS Code to build Royale with a mxml starting point on >> asconfi.json, template, etc, etc .... >> But, how to use VS Code (in therms of the full asconfig.json) to build a >> library: SWC-JS ? >> Has anyone used it for this purpose? >>