Improve module loading TypeScript definitions
Categories
(DevTools :: Performance Tools (Profiler/Timeline), task, P3)
Tracking
(firefox77 fixed)
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: gregtatum, Assigned: gregtatum)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 1 obsolete file)
Right now the module loading is a bit verbose with lots of boilerplate. This can be improved.
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Previously we had to use an annoying method of coercing the global "this"
into an "any" type, then set the "require" property to the browser loader's
"require" function. This patch adds that typing mechanism to the DevTools'
loader system, making it a bit more ergonomic to use.
Depends on D59206
Assignee | ||
Comment 3•6 years ago
|
||
Depends on D59207
Assignee | ||
Comment 4•6 years ago
|
||
ochameau: I took some time after your feedback to try and improve upon the loader situation to make it more ergonomic. The first patch I only have julien as the reviewer, but the next two I touch "real" files outside of the performance-new directory. I tried to balance the impact of performance, ergonomics, and type safety with the approach. Let me know what you think about the approach.
Updated•6 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
I'm leaving this open, as I would still like to rebase the ChromeUtils.import paths patch.
Assignee | ||
Comment 6•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/79e01e02fa5e
https://hg.mozilla.org/mozilla-central/rev/8dfe8cb5a831
https://hg.mozilla.org/mozilla-central/rev/de5aad1dc90e
Description
•