Commit Graph
15 Commits
Author SHA1 Message Date
Nicolas Chevobbe 29843b03b0 Bug 1826503 - [devtools] Properly vendor fuzzaldrin-plus. r=devtools-reviewers,sylvestre,ochameau.
The library is added in devtools/client/shared/vendor, like the other third-party
libraries we use in DevTools.

This was the latest file that justified the debugger-specific vendor machinery,
so we can clean that up now.

First, we can remove the vendor.js file.
With this, this means that bin/bundle.js now only bundles the workers, using rollup,
so we can remove webpack and its associated packages from package.json, as well
as the webpack.config.js.
Finally, we can stop handling debugger vendors in build-debugger.js

Differential Revision: https://phabricator.services.mozilla.com/D193916
2023-11-24 08:50:42 +00:00
Nicolas Chevobbe a7b06eb2a6 Bug 1862963 - [devtools] Use strictRequires option for commonjs rollup plugin. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D192770
2023-11-07 05:54:52 +00:00
Nicolas Chevobbe 2aad9f9607 Bug 1837926 - [devtools] Update babel/parser package. r=devtools-reviewers,ochameau.
This is needed to handle the new Regexp `v` flag.
I'm taking this as an opportunity to fix a couple issue in the bundle script.

Differential Revision: https://phabricator.services.mozilla.com/D180675
2023-06-13 05:01:21 +00:00
Nicolas Chevobbe 17b6d80865 Bug 1826508 - [devtools] Use rollup for bundling debugger workers. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D174723
2023-04-11 05:55:17 +00:00
Hubert Boma Manilla feec5e0ab7 Bug 1821931 - [devtools] Add the micromatch package to MC r=ochameau,devtools-reviewers,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D172380
2023-03-27 09:36:25 +00:00
Alexandre Poirot 8c00f1d413 Bug 1794693 - [devtools] Move devtools-source-map to regular mozilla-central code. r=bomsy,perftest-reviewers,jdescottes,sparky
This used to be a node package. Let's make it become regular commonjs devtools modules.
This will make it trivial to migrate this to ES Modules.
Also possibly make this code become the unique layer in m-c on top of the source-map package.

We no longer use webpack to build the two bundles (index.js and worker.js),
instead, we are using the toolkit worker loader (require.js) in order to load
all this code without any build step.

As this is no longer a node package, I removed node-specific modules (assertRoot/wasmAsset)
and simplify the definition of wasm file URIs as they are now fixed.

Also moving the debugger to load internal "devtools/client/shared/source-map/source-map.js"
module in jest as running the Web Worker instantiated by source-map/index.js is too complex.

Differential Revision: https://phabricator.services.mozilla.com/D159115
2022-11-08 16:01:01 +00:00
Alexandre Poirot 6179c70e87 Bug 1794692 - [devtools] Vendor source-map package in devtools more explicitly. r=bomsy
For now, it was vendored by a manual run to webpack from the debugger folder (node bin/bundle.js).
Ship a more explicit bundle of it, next to all other already existing vendored files.

$ git clone [email protected]:mozilla/source-map.git
$ cd source-map/
$ git checkout 0.8.0-beta.0
$ rm -rf .git/
/!\ lib/read-wasm.js has been edited and need to be preserved/rebased /!\
$ hg/git add source-map.js LICENCE lib/

Also, hopefully temporarily vendor whatwg-url:
$ git clone [email protected]:jsdom/whatwg-url.git
$ cd whatwg-url/
$ npm install
$ npm run build
$ npm run build-live-viewer
$ cp live-viewer/whatwg-url.js ..
$ hg/git add whatwg-url.js

and also temporarily replace source-map/lib/url.js with source-map/lib/url-browser.js
And edit this file to do:
  module.exports = require("devtools/client/shared/vendor/whatwg-url").URL;

Hopefully, we can remove whatwg-url dependency and remove all this.

Differential Revision: https://phabricator.services.mozilla.com/D159113
2022-11-08 16:00:59 +00:00
Julian Descottes 7470633a8b Bug 1755529 - [devtools] Add some documentation for debugger bin/bundle artifacts r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D138764
2022-02-15 17:18:49 +00:00
Nicolas Chevobbe af938c9279 Bug 1672180 - [devtools] Remove devtools-launchpad dependency in bin/bundle.js. r=jdescottes.
The two functions we were using, makeBundle and copyFile, were simple
enough so we could directly inline them in the script.
The task run as before, but for some reason the order of some modules
changed in the resulting bundles.

Differential Revision: https://phabricator.services.mozilla.com/D94108
2020-10-22 06:20:25 +00:00
Nicolas Chevobbe 8dd55cd102 Bug 1669956 - [devtools] Remove devtools-reps from debugger codebase. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93351
2020-10-14 11:24:07 +00:00
David Walsh d5de1c9ead Bug 1500987 - Elevate the new debugger one directory. r=jlast 2019-04-09 13:16:00 -04:00
Noemi Erli b90b1b551f Backed out changeset ca42d5764b08 (bug 1500987) for failures in browser_dbg_worker-console-04.js 2019-04-09 19:04:30 +03:00
David Walsh 2113d7d3da Bug 1500987 - Elevate the new debugger one directory. r=jlast 2019-04-09 10:31:11 -04:00
Andreea Pavel 37877174ea Backed out changeset 21e7aa527584 (bug 1500987) for debugger, clipboard and dt failures on a CLOSED TREE 2019-04-08 23:15:05 +03:00
David Walsh 8d7dc8f078 Bug 1500987 - Elevate the new debugger one directory. r=jlast 2019-04-08 15:10:44 -04:00