ESMify mozjexl.jsm
Categories
(Firefox :: Messaging System, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox125 | --- | fixed |
People
(Reporter: dmosedale, Assigned: mconley)
References
(Depends on 1 open bug)
Details
(Whiteboard: [esmification-timeline])
Attachments
(2 files, 1 obsolete file)
mozjexl.js / mozjexl.jsm need to be replaced by an ESM module. That file is moving to being generated in https://github.com/mozilla/mozjexl.
I think the fast path here is likely to be to upgrade that repo to a new version of webpack that supports generating ES modules. Or if that turns out to be a pain, switching to rollup or somesuch.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 1•2 years ago
|
||
Comment 2•2 years ago
|
||
Reporter | ||
Comment 3•2 years ago
|
||
I'd guess it will make sense to land this as part of bug 1778535.
Updated•2 years ago
|
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
An alternative here would be to do a "simple" conversion of the existing mozjexl in-tree, i.e. this.mozjexl=
-> export var mozjexl =
, and strip EXPORTED_SYMBOLS
.
This would unblock this bug and esm-ification, though would mean that there would be a couple of extra steps next time an import happened from the repository - however, given that doesn't seem to happen often, maybe that isn't much of an issue.
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 5•2 years ago
|
||
Description
•