Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1509

Generate spec-compliant require calls

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tooling
    • Labels:
      None

      Description

      We now support proper require semantics for relative and absolute requires, and have deprecated the old "bare" requires that have typically been used in Titanium (that have been treated as absolute implicitly).

      On Titanium 6+ Alloy should generate spec-compliant require values, i.e.

      require('controllers/whatever'); // wrong!
      require('/controllers/whatever'); // right, if that's the absolute path, may need to use relative
      

      Given that these new correct versions would not work on Titanium 5 and lower, we should likely only generate these requires at build time for 6+.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                batman Bruce Wayne
                Reporter:
                ben.bahrenburg@gmail.com Ben Bahrenburg
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration