Skip to content

Commit 9d14d7a

Browse files
authored
chore: shim puppeteer in lh bundle (#1101)
LH PR GoogleChrome/lighthouse#16895 Contains unmodified output from `npm run update-lighthouse`.
1 parent adac7c5 commit 9d14d7a

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/third_party/lighthouse-devtools-mcp-bundle.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Lighthouse v13.0.3-3-g565cfd0f2 (Mar 02 2026)
2+
* Lighthouse v13.0.3-4-gd6e2a8e40 (Mar 04 2026)
33
*
44
* Automated auditing, performance metrics, and best practices for the web.
55
*
@@ -53317,8 +53317,13 @@ var str_101 = createIcuMessageFn({ url: "core/gather/timespan-runner.js" }.url,
5331753317

5331853318
// core/gather/navigation-runner.js
5331953319
init_process_global();
53320+
53321+
// replace-modules:/Users/alexrudenko/src/lighthouse/node_modules/puppeteer-core/lib/cjs/puppeteer/puppeteer-core.js
53322+
init_process_global();
53323+
var puppeteer_core_default = {};
53324+
53325+
// core/gather/navigation-runner.js
5332053326
init_lighthouse_logger();
53321-
import puppeteer from "puppeteer-core";
5332253327

5332353328
// core/gather/driver/navigation.js
5332453329
init_process_global();
@@ -54079,7 +54084,7 @@ async function navigationGather(page, requestor, options = {}) {
5407954084
let lhPage = void 0;
5408054085
if (!page) {
5408154086
const { hostname = DEFAULT_HOSTNAME, port = DEFAULT_PORT } = flags;
54082-
lhBrowser = await puppeteer.connect({ browserURL: `http://${hostname}:${port}`, defaultViewport: null });
54087+
lhBrowser = await puppeteer_core_default.connect({ browserURL: `http://${hostname}:${port}`, defaultViewport: null });
5408354088
lhPage = await lhBrowser.newPage();
5408454089
page = lhPage;
5408554090
}

0 commit comments

Comments
 (0)