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

Allow babel plugins to be added via config.json

    Details

    • Type: Improvement
    • Status: In Progress
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tooling
    • Labels:

      Description

      As a developer,
      I want to be able to add/configure babel plugins to run on my code,
      So that I can add features without Alloy pull request.
      

      There are a lot of features that can be added to Alloy by allow babel presets and plugins to be defined in config.json. Currently, it is somewhat possible to add a preset by pushing them to sourceMapper.OPTIONS_OUTPUT.presets from inside alloy.jmk. However, when adding plugins, they are removed because Alloy is overwriting all plugins here: https://github.com/appcelerator/alloy/blob/master/Alloy/commands/compile/index.js#L1131-L1136

      If instead it used _.defaults (or even better, a merge), it could preserve any changes to sourceMapper.OPTIONS_OUTPUT.plugins

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              brentonhouse Brenton House
            • Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Source Code