You might try using asjsc instead of mxmlc if you want to compile with JS.swc.
- Josh On Dec 30, 2015 10:32 PM, "Andy Dufilie" <andy.dufi...@gmail.com> wrote: > On Wed, Dec 30, 2015 at 1:05 PM, Alex Harui <aha...@adobe.com> wrote: > > > Try: -js-compiler-option="--compilation_level WHITESPACE_ONLY" > > > That worked after fixing the special characters. Is there a place that > options like this are documented? > > Now that I'm compiling via flexjs/js/bin/mxmlc using the WHITESPACE_ONLY > option, I get an error in bin/js-release/index.html when it tries to load a > deps.js that doesn't exist. Based on what I've seen online, the only way > to avoid this error is to define a var before the base.js code runs, such > as adding the following script tag in the generated index.html: > <script>var CLOSURE_NO_DEPS = true;</script> > The other option that seems like it should work is to provide an additional > js file to the closure compiler containing this var, but when I try the > following, it doesn't include my code: > -js-compiler-option="--js C:/path/to/myfile.js" > Shouldn't that work? Is there another way to include JS sources? > > A few more questions: > > - When I run flexjs/js/bin/compc I get a bin-release folder with the JS > output files. I then try to run closure manually on these files, and I get > circular dependency errors for my code that do not appear when using > flexjs/js/bin/mxmlc. Is there an additional step that happens behind the > scenes, removing circular dependencies? > > - Is there a way that I can see exactly what parameters flexjs/js/bin/mxmlc > is passing to the closure compiler? > > - Is there a documented way to use js.swc instead of playerglobal.swc? >