Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26333] Generate source maps for transpiled code

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-09-18T18:10:16.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.5.0
ComponentsAndroid, iOS, Windows
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2018-08-23T17:52:40.000+0000
Updated2019-10-11T12:54:43.000+0000

Description

- Currently, we do not generate any source maps for transpiled JS code. Babel can produce a source map that can be used when debugging with Inspector.

Attachments

FileDateSize
Screen Shot 2018-08-23 at 11.28.23 AM.png2018-08-23T18:28:34.000+000076684

Comments

  1. Gary Mathews 2018-08-23

    titanium_mobile: https://github.com/appcelerator/titanium_mobile/pull/10280 node-titanium-sdk: https://github.com/appcelerator/node-titanium-sdk/pull/44
  2. Samir Mohammed 2018-10-10

    *Closing ticket.* Verified improvement on SDK Version 7.5.0.v20181008124804. Able to see generated source maps for transpiled code. *FR Passed (Test Steps)*

    Created a new Titanium project

    Added the following properties in to the Tiapp.xml

       <source-maps>true</source-maps>
           <transpile>true</transpile>
       

    Ran the program using

       appc run -p android -C 'Nexus6PAPI23' --debug-host /127.0.0.1:51388appc run -p android -C 'Nexus6PAPI23' --debug-host /127.0.0.1:51388
       

    Opened the chrome dev tools

    Able to see source maps

    *Test Environment*
       APPC Studio: 5.1.0.201808080937
       Nexus 5X API23
       APPC CLI: 7.0.7-master.4
       Operating System Name: Mac OS Mojave
       Operating System Version: 10.14
       Node.js Version: 8.9.1
       Xcode 10.0
       

JSON Source