lighthouse 12.5.1-dev.20250327 → 12.5.1-dev.20250328

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,21 +15,14 @@
15
15
  /** @typedef {{name: string, line: number, column: number}} PatternMatchResult */
16
16
  /** @typedef {{matches: PatternMatchResult[], estimatedByteSavings: number}} Result */
17
17
 
18
- import fs from 'fs';
19
-
20
- import {LH_ROOT} from '../../../shared/root.js';
21
-
22
- const polyfillModuleDataJson = fs.readFileSync(
23
- `${LH_ROOT}/core/lib/legacy-javascript/polyfill-module-data.json`, 'utf-8');
18
+ import polyfillModuleData_ from './polyfill-module-data.json' with { type: 'json' };
19
+ import graph_ from './polyfill-graph-data.json' with { type: 'json' };
24
20
 
25
21
  /** @type {import('../../scripts/legacy-javascript/create-polyfill-module-data.js').PolyfillModuleData} */
26
- const polyfillModuleData = JSON.parse(polyfillModuleDataJson);
27
-
28
- const graphJson = fs.readFileSync(
29
- `${LH_ROOT}/core/lib/legacy-javascript/polyfill-graph-data.json`, 'utf-8');
22
+ const polyfillModuleData = polyfillModuleData_;
30
23
 
31
24
  /** @type {import('../../scripts/legacy-javascript/create-polyfill-size-estimation.js').PolyfillSizeEstimator} */
32
- const graph = JSON.parse(graphJson);
25
+ const graph = graph_;
33
26
 
34
27
  /**
35
28
  * Takes a list of patterns (consisting of a name identifier and a RegExp expression string)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "12.5.1-dev.20250327",
4
+ "version": "12.5.1-dev.20250328",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {
@@ -10,7 +10,7 @@
10
10
  "smokehouse": "./cli/test/smokehouse/frontends/smokehouse-bin.js"
11
11
  },
12
12
  "engines": {
13
- "node": ">=18.16"
13
+ "node": ">=18.20"
14
14
  },
15
15
  "scripts": {
16
16
  "prepack": "yarn build-report --standalone --flow --esm && yarn build-types",
package/readme.md CHANGED
@@ -53,7 +53,7 @@ The Chrome extension was available prior to Lighthouse being available in Chrome
53
53
  The Node CLI provides the most flexibility in how Lighthouse runs can be configured and reported. Users who want more advanced usage, or want to run Lighthouse in an automated fashion should use the Node CLI.
54
54
 
55
55
  > **Note**
56
- > Lighthouse requires Node 18 LTS (18.x) or later.
56
+ > Lighthouse requires Node 18.20 or later.
57
57
 
58
58
  **Installation**:
59
59
 
@@ -12,7 +12,7 @@
12
12
  "rootDir": ".",
13
13
 
14
14
  "target": "es2022",
15
- "module": "es2022",
15
+ "module": "preserve",
16
16
  "moduleResolution": "node",
17
17
  "esModuleInterop": true,
18
18
 
package/tsconfig.json CHANGED
@@ -25,6 +25,7 @@
25
25
  "core/test/fixtures/unresolved-perflog.json",
26
26
  "core/test/fixtures/traces/lcp-m78.devtools.log.json",
27
27
  "core/lib/legacy-javascript/polyfill-graph-data.json",
28
+ "core/lib/legacy-javascript/polyfill-module-data.json",
28
29
  "shared/localization/locales/en-US.json",
29
30
  ],
30
31
  "exclude": [