Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1691] Source maps report incorrect "file" value

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2019-06-21T19:11:10.000+0000
Affected Version/sn/a
Fix Version/sCLI Release 7.1.0, Alloy 1.14.0
Componentsn/a
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2019-06-07T15:48:12.000+0000
Updated2019-06-21T19:11:10.000+0000

Description

The generated source maps for Alloy report an incorrect "file" value, which is intended to be the generated JS file's path. (it reports a similar path, with the platform folder stripped out)

Comments

  1. Christopher Williams 2019-06-17

    https://github.com/appcelerator/alloy/pull/893
  2. Christopher Williams 2019-06-19

    Note that the "file" property within the source map should point to a full absolute filepath - it should not be relative to sourceRoot (that's only for the 'sources' property)
  3. Satyam Sekhri 2019-06-21

    The source map shows the correct value for the "file" which is an absolute filepath to the js file under the respective platform folder. Verified on: Mac OS 10.14.3 Ti SDK: 8.1.0.v20190619081758 Appc CLI: 7.1.0-master.22 Node: 10.13.0 Alloy: 1.14.0-1 JDK: 1.8.0_144 Xcode: 10.2.1

JSON Source