[meta] Stop using lodash in the debugger codebase
Categories
(DevTools :: Debugger, task)
Tracking
(firefox98 fixed)
Tracking | Status | |
---|---|---|
firefox98 | --- | fixed |
People
(Reporter: jdescottes, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
(Keywords: meta)
Attachments
(1 file)
lodash is a huge dependency in the debugger (16K lines), and seems to be mostly used for simple helpers. https://searchfox.org/mozilla-central/search?q=lodash&path=debugger%2Fsrc%2F&case=false®exp=false
The goal of this meta is to stop using lodash. It can be done file by file, or method by method. When trying to replace a lodash import, we should also take the opportunity to review if the usage really makes sense before porting the lodash helper.
The complete list of lodash methods is:
- debounce
- difference
- escapeRegExp
- findIndex
- findLastIndex
- flatMap
- flatten
- flattenDeep
- fromPairs
- groupBy
- has
- isEmpty
- isEqual
- kebabCase
- memoize
- move
- omit
- pullAt
- range
- remove
- sortBy
- throttle
- times
- toPairs
- union
- uniq
- uniqBy
- without
- zip
Comment 1•4 years ago
|
||
The meta keyword is there, the bug doesn't depend on other bugs and there is no activity for 12 months.
:Honza, maybe it's time to close this bug?
Comment 2•4 years ago
|
||
Nicolas, we were discussing this recently. Are there any specific bugs we could add as dependencies?
Assignee | ||
Comment 3•4 years ago
|
||
(In reply to Jan Honza Odvarko [:Honza] (always need-info? me) from comment #2)
Nicolas, we were discussing this recently. Are there any specific bugs we could add as dependencies?
I don't think if we have such bug, we'd have to file them individually.
IMO we could file individual bugs to remove specific lodash method, as it would be easier for someone to tackle such task (instead of doing it file by file, where you might have to deal with different methods)
I'll try to file some
Assignee | ||
Comment 4•4 years ago
|
||
We should have the full list of blocker bugs now
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D136172
Updated•4 years ago
|
Comment 7•4 years ago
|
||
bugherder |
Description
•