{ "id": "173803", "key": "ALOY-1694", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2019-06-24T17:40:05.000+0000", "epic": { "id": 173613, "key": "TISTUD-9169", "name": "Fix Debugging", "summary": "Fix miscellaneous debugger issues", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [ { "id": "57712", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "173670", "key": "ALOY-1690", "fields": { "summary": "sourcemaps not being generated for files under lib", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "batman", "key": "batman", "displayName": "Bruce Wayne", "active": true, "timeZone": "America/New_York" }, "updated": "2019-06-24T17:40:05.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13602", "name": "Appcelerator Studio", "description": "Appcelerator Studio specific issues" }, { "id": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" }, { "id": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" } ], "description": "The way that Alloy copies {{lib/}} files results in source maps being generated, but the copied lib file has no pointer to the source map. It should have a {{//# sourceMappingURL=}} comment appended which points to the full file path of the generated source map file.\r\n\r\nAdditionally, the generated source maps **may not be correct** based on the optimizer plugin being run as a post-process \"Optimizer\" step.\r\n\r\nIdeally the files should be processed by Babel, spit out a source map, have a comment appended to the generated contents pointing at the map file, and then written to disk (all as a single process/flow per-file) and not included in the later \"optimizing\" step.\r\n\r\nInstead Alloy does this:\r\n- copies the file as-is (no {{//# sourceMappingURL=}} comment!)\r\n- immediately generates a 1:1 source map to represent the copy\r\n- later runs an \"optimizing step\" on some of the files under the {{Resources/}} directory (including the ones from {{lib/}}!) which **may** result in the source map now being incorrect", "attachment": [], "flagged": false, "summary": "app/lib files do not have sourceMappingURL comments", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }