Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25328

CLI: Option "Enable Javascript Minification" break code from SDK >= 6.1.1.G.A

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.0.0
    • Component/s: CLI
    • Environment:

      Titanium SDK 6.0.4.G.A, 6.1.0.G.A, 6.1.1.G.A, 6.1.2.G.A, 6.2.0.G.A, 6.2.1.G.A

      Description

      When the app is installed on the device (also on Appstore) and the option Enable Javascript Minification is active, in some portions of the code there are some problems due to how the variables are minimized. So it depends on the structure of the code, in my case it's very complex, and i can't provide a sample code (for now).

      But one case that i solved is this :

      function myModule(..,...) {
          .....
          function test(){
                  ......
                  test2();
                  function test2(){ ...  }
          }
           
      }
      module.exports = myModule;
      

      In this case it was enough to do this for solve the problem

      function myModule(..,...) {
          .....
          function test(){
                  ......
                  test2();
                  
          }
          function test2(){ ...  }
           
      }
      module.exports = myModule;
      

      I have this problems with this SDK:

      • 6.2.1.G.A
      • 6.2.0.G.A
      • 6.1.2.G.A
      • 6.1.1.G.A

      I dont' have this problems with this SDK:

      • 6.1.0.G.A
      • 6.0.4.G.A
      • I didn't test the previous ones

      If the option "Enable Javascript Minification" is not active there aren't problems.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                nicolomonili nicolomonili
                Reviewer:
                Christopher Williams
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-11178
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code