File tree 13 files changed +30
-36
lines changed
core/lib/legacy-javascript
13 files changed +30
-36
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ jobs:
29
29
GITHUB_CONTEXT_PR_BASE_SHA : ${{ github.event.pull_request.base.sha }}
30
30
GITHUB_CONTEXT_BASE_SHA : ${{ github.event.before }}
31
31
32
- - name : Use Node.js 18.x
32
+ - name : Use Node.js 18.20
33
33
uses : actions/setup-node@v4
34
34
with :
35
- node-version : 18.x
35
+ node-version : ' 18.20 '
36
36
37
37
- run : yarn install --frozen-lockfile --network-timeout 1000000
38
38
- run : yarn type-check
Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ jobs:
31
31
steps :
32
32
- name : git clone
33
33
uses : actions/checkout@v4
34
- - name : Use Node.js 18.x
34
+ - name : Use Node.js 18.20
35
35
uses : actions/setup-node@v4
36
36
with :
37
- node-version : 18.x
37
+ node-version : ' 18.20 '
38
38
- run : yarn --frozen-lockfile
39
39
40
40
- run : yarn mocha --testMatch=third-party/chromium-synchronization/*-test.js
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ jobs:
25
25
with :
26
26
path : lighthouse
27
27
28
- - name : Use Node.js 18.x
28
+ - name : Use Node.js 18.20
29
29
uses : actions/setup-node@v4
30
30
with :
31
- node-version : 18.x
31
+ node-version : ' 18.20 '
32
32
33
33
- name : Generate cache hash
34
34
run : bash $GITHUB_WORKSPACE/lighthouse/.github/scripts/generate-devtools-hash.sh > cdt-test-hash.txt
@@ -91,10 +91,10 @@ jobs:
91
91
with :
92
92
path : lighthouse
93
93
94
- - name : Use Node.js 18.x
94
+ - name : Use Node.js 18.20
95
95
uses : actions/setup-node@v4
96
96
with :
97
- node-version : 18.x
97
+ node-version : ' 18.20 '
98
98
99
99
- run : yarn --frozen-lockfile --network-timeout 1000000
100
100
working-directory : ${{ github.workspace }}/lighthouse
@@ -141,10 +141,10 @@ jobs:
141
141
with :
142
142
path : lighthouse
143
143
144
- - name : Use Node.js 18.x
144
+ - name : Use Node.js 18.20
145
145
uses : actions/setup-node@v4
146
146
with :
147
- node-version : 18.x
147
+ node-version : ' 18.20 '
148
148
149
149
- name : Load build artifacts
150
150
id : devtools-build-artifacts
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ jobs:
19
19
- name : git clone
20
20
uses : actions/checkout@v4
21
21
22
- - name : Use Node.js 18.x
22
+ - name : Use Node.js 18.20
23
23
uses : actions/setup-node@v4
24
24
with :
25
- node-version : 18.x
25
+ node-version : ' 18.20 '
26
26
27
27
- run : yarn install --frozen-lockfile --network-timeout 1000000
28
28
- run : yarn build-report
Original file line number Diff line number Diff line change 31
31
- uses : actions/checkout@v4
32
32
- uses : actions/setup-node@v4
33
33
with :
34
- node-version : 18.x
34
+ node-version : ' 18.20 '
35
35
registry-url : https://registry.npmjs.org/
36
36
- run : yarn --frozen-lockfile
37
37
Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ jobs:
36
36
# Depth of at least 2 for codecov coverage diffs. See https://github.com/GoogleChrome/lighthouse/pull/12079
37
37
fetch-depth : 2
38
38
39
- - name : Use Node.js 18.x
39
+ - name : Use Node.js 18.20
40
40
uses : actions/setup-node@v4
41
41
with :
42
- node-version : 18.x
42
+ node-version : ' 18.20 '
43
43
44
44
# Since Ubuntu 23, dev builds of Chromium need this.
45
45
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
@@ -98,10 +98,10 @@ jobs:
98
98
uses : actions/checkout@v4
99
99
100
100
# Use Node 18 here earlier than everywhere else, see https://github.com/GoogleChrome/lighthouse/issues/15160#issuecomment-1589913408
101
- - name : Use Node.js 18.x
101
+ - name : Use Node.js 18.20
102
102
uses : actions/setup-node@v4
103
103
with :
104
- node-version : 18.x
104
+ node-version : ' 18.20 '
105
105
106
106
- name : Define ToT chrome path
107
107
run : echo "CHROME_PATH=${env:GITHUB_WORKSPACE}\.tmp\chrome-tot\chrome.exe" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
@@ -146,10 +146,10 @@ jobs:
146
146
- name : git clone
147
147
uses : actions/checkout@v4
148
148
149
- - name : Use Node.js 18.x
149
+ - name : Use Node.js 18.20
150
150
uses : actions/setup-node@v4
151
151
with :
152
- node-version : 18.x
152
+ node-version : ' 18.20 '
153
153
154
154
- run : yarn install --frozen-lockfile --network-timeout 1000000
155
155
- run : yarn build-report
Original file line number Diff line number Diff line change @@ -106,10 +106,10 @@ jobs:
106
106
- name : git clone
107
107
uses : actions/checkout@v4
108
108
109
- - name : Use Node.js 18.x
109
+ - name : Use Node.js 18.20
110
110
uses : actions/setup-node@v4
111
111
with :
112
- node-version : 18.x
112
+ node-version : ' 18.20 '
113
113
114
114
- run : yarn install --frozen-lockfile --network-timeout 1000000
115
115
- run : yarn build-report
Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change 5
5
Setup:
6
6
7
7
``` sh
8
- # Lighthouse requires Node 18 LTS (18.x) or later.
8
+ # Lighthouse requires Node 18.20 or later.
9
9
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - && \
10
10
sudo apt-get install -y nodejs npm
11
11
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" : [
You can’t perform that action at this time.
0 commit comments