If targets only has JSFlex, there shouldn't be any SWF compile at all.
The console should spit out what it thinks it needs to do.

Keep in mind that there are now SWCs for SWFs and SWCs for JS.  Prior to
dual, there was a main SWC with SWF APIs that the compiler saw, and JS
that it substituted in the output.  The JS SWC was only used to build
downstream JS SWCs.

If you have a custom SWC before dual and it has platform dependent APIs,
and you are only interested in JS output, you need to make sure your SWC's
upstream SWCs are the JS SWCs and not the SWF SWCs.

That in turn requires being more careful about which SWCs are on the
-library-path vs -swf-library-path vs -js-library-path.  In theory, if you
only want JS output, it should be as simple as making sure everything on
the -library-path is a SWC for JS.

HTH,
-Alex

On 5/31/17, 8:42 PM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:

>As I understand it, the compiler should just take care of differences
>between JS and SWF, as long as your targets option is correct. VSCode
>shouldn't need to do anything​ special except to pass in the correct
>options.
>
>There's nothing related to dual changes on my to-do list at this time, but
>maybe I missed something important...
>
>- Josh
>
>On May 31, 2017 7:52 PM, "Harbs" <harbs.li...@gmail.com> wrote:
>
>Josh,
>
>VS Code is now reporting lots of errors in the Problems window. I’m
>guessing it does not know how to differentiate between JS and SWF builds
>using dual?
>
>Is that something on your to-do list?
>
>Thanks,
>Harbs
>
>> On Jun 1, 2017, at 5:10 AM, Harbs <harbs.li...@gmail.com> wrote:
>>
>> Bingo. Thanks!
>>
>> SWF output still gets all kinds of errors, but the JS output is pretty
>error free. I still have some fixing up to do before I can see how well it
>actually works, but at least the compiler is not complaining now.
>>
>>> On Jun 1, 2017, at 4:45 AM, Josh Tynjala <joshtynj...@gmail.com> wrote:
>>>
>>> Try replacing the js-output-type compiler option with:
>>>
>>> "targets": ["JSFlex"]
>>>
>>> - Josh
>>>
>>> On May 31, 2017 6:26 PM, "Harbs" <harbs.li...@gmail.com> wrote:
>>>
>>>> I’m using asconfig in VSCode to compile with these settings:
>>>>   "config": "flex",
>>>>   "compilerOptions": {
>>>>       "debug": false,
>>>>       "js-output-type": "flexjs",
>>>>       "source-map": false,
>>>>       "library-path": [
>>>>           "lib"
>>>>       ],
>>>>
>>>>> On Jun 1, 2017, at 1:04 AM, Justin Mclean <jus...@classsoftware.com>
>>>> wrote:
>>>>>
>>>>> HI,
>>>>>
>>>>>> Am I missing something?
>>>>>
>>>>> Perhaps try <targets>JSFlex</targets> in your pom.xml? I believe the
>>>> name changed from pre to post dual branch.
>>>>>
>>>>> Justin
>>>>>
>>>>
>>>>
>>

Reply via email to