Closed Bug 1794683 Opened 2 years ago Closed 2 years ago

Remove magic "devtools-source-map" mapping from the debugger

Categories

(DevTools :: Debugger, enhancement)

enhancement

Tracking

(firefox108 fixed)

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

The debugger is currently having a magic commonjs path mapping from "devtools-source-map" to devtools/client/shared/source-map/index.js:
https://searchfox.org/mozilla-central/rev/f118dae98073bc17efb8604a32abfcb7b4e05880/devtools/client/shared/build/build-debugger.js#31

This is used here and there:
https://searchfox.org/mozilla-central/search?q=devtools-source-map&path=&case=true&regexp=false
We should rather use the absolute require path to the mapping within devtools folder.
This will help move to ES Module which would only work with absolute URIs (or relative paths). But also simplify the integration of source map in mozilla-central.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d663f78a26f6 [devtools] Avoid devtools-source-map magic mapping. r=bomsy
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: