Convert Launcher JSM to an ES Module
Categories
(DevTools :: Framework, task)
Tracking
(firefox106 fixed)
Tracking | Status | |
---|---|---|
firefox106 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
(Whiteboard: [esmification-timeline])
Attachments
(3 files)
Let's try to convert one DevTools JSM to a system ES Module.
Launcher.jsm, which is the module to open a Browser Toolbox is a good starting point as it should be mostly used by DevTools codebase.
https://searchfox.org/mozilla-central/search?q=%2FLauncher.jsm&path=&case=false®exp=false
Assignee | ||
Comment 1•2 years ago
|
||
This is the result of:
$ ./mach esmify devtools/client/framework/browser-toolbox/Launcher.jsm
Assignee | ||
Comment 2•2 years ago
|
||
This is the result of:
$ ./mach esmify --imports . --prefix=devtools/client/framework/browser-toolbox
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
In md files and code comments and mostly from common js files.
I'm moving away from require to load sys.mjs files so that we are closer
to what we do in mozilla-central.
Updated•2 years ago
|
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5f1c8b21039c [devtools] Convert Launcher JSM to an ES Module. r=bomsy https://hg.mozilla.org/integration/autoland/rev/7c6d06d2adaa [devtools] Load Launcher.sys.mjs via ChromeUtils.importESModule. r=perftest-reviewers,bomsy,arai,sparky https://hg.mozilla.org/integration/autoland/rev/1be11ab96e3f [devtools] Manual rewrites r=bomsy
Comment 5•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5f1c8b21039c
https://hg.mozilla.org/mozilla-central/rev/7c6d06d2adaa
https://hg.mozilla.org/mozilla-central/rev/1be11ab96e3f
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/f5e630ff3658 Port bug 1783821 - Convert Launcher JSM to an ES Module. rs=bustage-fix DONTBUILD
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/d8e8f046f20c Port bug 1783821 (take 2) - Convert Launcher JSM to an ES Module. rs=bustage-fix DONTBUILD
Description
•