Open
Bug 1676687
Opened 5 years ago
Updated 1 year ago
update d3 to something recent
Categories
(Socorro :: Webapp, task, P3)
Socorro
Webapp
Tracking
(Not tracked)
NEW
People
(Reporter: willkg, Unassigned)
References
(Blocks 2 open bugs)
Details
Crash Stats is a django app and uses django-pipeline along with uglify-js to compress and minify js static assets.
However, uglify-js doesn't support ES6 (there's a harmony branch that looks abandoned) and recent versions of d3 use ES6 (I'm pretty sure this is the problem I just hit today) and so they don't work with uglify. The uglify-js readme says to run them through babel first.
django-pipeline doesn't seem to have any compressors built-in that support ES6. There's an issue for adding support for Terser:
https://github.com/jazzband/django-pipeline/issues/733
Maybe we can switch to that and then that'd let us update d3?
Alternatively, maybe we can ditch d3 for something else? I think it's only used in the graphs in the signature report.
You need to log in
before you can comment on or make changes to this bug.
Description
•