Closed Bug 1478739 Opened 7 years ago Closed 7 years ago

Non ES5 code in HCT lib is breaking uglify builds

Categories

(Toolkit :: Telemetry, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: muffinresearch, Assigned: janerik)

Details

Attachments

(1 file)

Having submitted a PR for the implementation of HCT on the disco pane our bundle builds are breaking due to ES6 code in the lib. Typically most packages publish ES code. We can also look to update to uglify-es but this might slow down the implementation because it has other dependencies. To make the HCT lib uglifyable you can simply: * Remove arrow functions 52 * Remove object shorthands 37, 81, 85 Alternatively transpile the library as part of the build process.
Assignee: nobody → jrediger
Priority: -- → P1
This line: Typically most packages publish ES code. Should be: Typically most packages publish ES5 code.
Comment on attachment 8995962 [details] Bug 1478739 - Don't use object shorthands and arrow functions in HCT. Chris H-C :chutten has approved the revision. https://phabricator.services.mozilla.com/D2508
Attachment #8995962 - Flags: review+
Pushed by jrediger@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/802725c77093 Don't use object shorthands and arrow functions in HCT. r=chutten
This is landing now. We will need to wait for :dexter to come back and push an NPM release (I'll make sure to get npm access afterwards for me and the team as well)
I got access and published Version 1.1.1[1] [1]: https://www.npmjs.com/package/mozilla-hybrid-content-telemetry
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: