Closed Bug 1949588 Opened 28 days ago Closed 15 days ago

Remove non-ESM version of react modules

Categories

(DevTools :: General, task)

task

Tracking

(firefox138 fixed)

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Regressed 1 open bug)

Details

Attachments

(2 files)

Bug 1949486 will introduce ESM versions for React modules, but could yet delete the non-ESM versions because JSONViewer was still using the non-ESM version.
Bug 1929387 will migrate the JSON Viewer to ESM which will allow getting rid of the non-ESM versions.

Also introduce a temporary workaround in the base loader to force loading
the available ESM from vendor.
This will prevent significantly increasing firefox installer size.

All the duplicated ESM modules are removed from Firefox package,
but some are kept in-tree for some jest tests which can't use ESM.

Node doesn't support ESM, so we have to drop enzyme and prevent loading any frontend module.
There is much more to be cleaned up, but let wait for getting rid of the tests entirely.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fa69a6efd514 [devtools] Remove React non-ESM modules r=nchevobbe,devtools-reviewers https://hg.mozilla.org/integration/autoland/rev/0585ab26c3b3 [devtools] Allow running the leftover debugger jest tests without react. r=nchevobbe,devtools-reviewers
Status: ASSIGNED → RESOLVED
Closed: 15 days ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
Blocks: 1952188
Blocks: 1952190
Blocks: 1952224
Regressions: 1953188
Blocks: 1953578
Blocks: 1953957
Regressions: 1954718
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: