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
|
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
Description
•