{ "id": "171335", "key": "TIMOB-25875", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20102", "name": "Release 7.1.1", "archived": false, "released": true, "releaseDate": "2018-05-02" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-04-03T23:28:32.000+0000", "created": "2018-03-16T16:29:27.000+0000", "epic": { "id": 152521, "key": "TIMOB-19834", "name": "Support ES6 for Titanium Application Development", "summary": "Support ES6 for Titanium Application Development", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "High", "id": "2" }, "labels": [ "babel", "es6", "transpile" ], "versions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "issuelinks": [], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2018-04-04T21:12:20.000+0000", "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" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "I noticed that Babel rewrites ES6 code in the app.js of classic projects to ES5 code (by using the generated code). It was noticed while moving [ti.mapbox to ES6|https://github.com/hyperloop-modules/ti.mapbox/pull/2].", "attachment": [], "flagged": false, "summary": "Android: Babel rewrites app.js in classic project to generated ES5 code", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti SDK 7.1.0", "closedSprints": [ { "id": 1018, "state": "closed", "name": "2018 Sprint 07 SDK", "startDate": "2018-03-25T21:59:36.637Z", "endDate": "2018-04-08T21:59:00.000Z", "completeDate": "2018-04-08T17:55:14.467Z", "originBoardId": 114 }, { "id": 1008, "state": "closed", "name": "2018 Sprint 06 SDK", "startDate": "2018-03-11T22:18:04.396Z", "endDate": "2018-03-25T22:18:00.000Z", "completeDate": "2018-03-25T21:52:36.683Z", "originBoardId": 216 } ], "comment": { "comments": [ { "id": "435680", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "So you're saying it transpiles the Resources/app.js to ES5 and writes it to disk at that same location, not under the build folder?\r\n\r\nBut only app.js?", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2018-03-16T16:49:17.000+0000", "updated": "2018-03-16T16:49:17.000+0000" }, { "id": "435682", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "ohhhh no... I found out what was happening here. Ugh. Transpilation is doing the right thing, but the combination of using symlinks to speed up builds *and* transpiling is messing things up. To be more specific: if you've built before and a file didn't get changed/transpiled, the build may have generated a symlink back to the original source files in the build directory. Then if you later turn on transpilation, the generated contents will get written to the destination location - which is still symlinked back to the original file!\r\n\r\nThis is a CLI fix where we need to be better about the possible combos of symlinking and updating contents. This is ugly.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2018-03-16T17:24:46.000+0000", "updated": "2018-03-16T17:24:46.000+0000" }, { "id": "435683", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "7_1_X: https://github.com/appcelerator/titanium_mobile/pull/9939\r\nmaster: https://github.com/appcelerator/titanium_mobile/pull/9940", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2018-03-16T18:00:11.000+0000", "updated": "2018-03-16T18:00:11.000+0000" }, { "id": "435684", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thats the issue! I've updated the ticket to indicate that this is an Android only issue and does not seem to appear on iOS. The Mapbox PR was tested with the change as well and it works as expected.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-16T19:43:33.000+0000", "updated": "2018-03-16T19:43:33.000+0000" }, { "id": "436252", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR's merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-03T23:28:27.000+0000", "updated": "2018-04-03T23:28:27.000+0000" }, { "id": "436303", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 7.1.1.v20180404110450 & 7.2.0.v20180403153400.\r\n\r\nClosing.\r\n\r\nStudio Ver: 5.1.0\r\nOS Ver: 10.13.2\r\nXcode Ver: Xcode 9.3\r\nAppc NPM: 4.2.13-2\r\nAppc CLI: 7.0.3-master.27\r\nDaemon Ver: 1.0.1\r\nTi CLI Ver: 5.1.0\r\nAlloy Ver: 1.11.0\r\nNode Ver: 8.9.1\r\nNPM Ver: 5.5.1\r\nJava Ver: 9.0.4\r\nDevices: ⇨ google Nexus 6P — Android 8.0.0\r\n⇨ google Nexus 5 — Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T21:12:15.000+0000", "updated": "2018-04-04T21:12:15.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }