lighthouse 13.5.0-dev.20261016 → 13.5.0-dev.20261020

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.
Files changed (102) hide show
  1. package/.agents/skills/update-trace-engine/SKILL.md +154 -0
  2. package/cli/test/smokehouse/__snapshots__/report-assert-test.js.snap +1 -1
  3. package/commitlint.config.js +1 -1
  4. package/core/audits/baseline.js +1 -1
  5. package/core/audits/insights/insight-audit.js +3 -2
  6. package/core/audits/script-treemap-data.js +12 -2
  7. package/core/computed/metrics/time-to-first-byte.js +5 -3
  8. package/core/computed/navigation-insights.js +3 -2
  9. package/core/computed/trace-engine-result.js +22 -4
  10. package/core/config/config-helpers.js +2 -3
  11. package/core/config/config.js +1 -2
  12. package/core/gather/base-artifacts.js +6 -0
  13. package/core/gather/gatherers/full-page-screenshot.js +2 -2
  14. package/core/gather/gatherers/inspector-issues.js +2 -0
  15. package/core/gather/gatherers/js-usage.js +2 -0
  16. package/core/gather/gatherers/scripts.d.ts +16 -3
  17. package/core/gather/gatherers/scripts.js +157 -14
  18. package/core/gather/gatherers/stylesheets.js +2 -0
  19. package/core/gather/gatherers/trace-elements.js +2 -1
  20. package/core/lib/cdt/Common.d.ts +1 -1
  21. package/core/lib/cdt/Common.js +2 -2
  22. package/core/lib/cdt/Platform.d.ts +7 -7
  23. package/core/lib/cdt/Platform.js +11 -8
  24. package/core/lib/cdt/SDK.d.ts +5 -1
  25. package/core/lib/cdt/SDK.js +4 -2
  26. package/core/lib/cdt/generated/ParsedURL.d.ts +0 -1
  27. package/core/lib/cdt/generated/ParsedURL.js +3 -9
  28. package/core/lib/cdt/generated/SourceMap.d.ts +24 -25
  29. package/core/lib/cdt/generated/SourceMap.js +7 -15
  30. package/core/lib/i18n/i18n.d.ts +0 -1
  31. package/core/lib/i18n/i18n.js +17 -11
  32. package/core/lib/legacy-javascript/legacy-javascript.d.ts +2 -2
  33. package/core/lib/legacy-javascript/legacy-javascript.js +1 -1
  34. package/core/lib/sentry.d.ts +1 -0
  35. package/core/lib/sentry.js +3 -0
  36. package/core/runner.js +2 -2
  37. package/dist/report/flow.js +4 -4
  38. package/package.json +16 -41
  39. package/report/generator/flow-report-assets.js +1 -3
  40. package/report/generator/report-assets.js +1 -2
  41. package/shared/esm-utils.d.ts +0 -8
  42. package/shared/esm-utils.js +0 -18
  43. package/shared/localization/format.js +1 -2
  44. package/shared/localization/locales/ar-XB.json +0 -6
  45. package/shared/localization/locales/ar.json +0 -6
  46. package/shared/localization/locales/bg.json +0 -6
  47. package/shared/localization/locales/ca.json +0 -6
  48. package/shared/localization/locales/cs.json +0 -6
  49. package/shared/localization/locales/da.json +0 -6
  50. package/shared/localization/locales/de.json +0 -6
  51. package/shared/localization/locales/el.json +0 -6
  52. package/shared/localization/locales/en-GB.json +0 -6
  53. package/shared/localization/locales/en-US.json +4 -7
  54. package/shared/localization/locales/en-XL.json +4 -7
  55. package/shared/localization/locales/es-419.json +22 -28
  56. package/shared/localization/locales/es.json +0 -6
  57. package/shared/localization/locales/fi.json +0 -6
  58. package/shared/localization/locales/fil.json +0 -6
  59. package/shared/localization/locales/fr.json +0 -6
  60. package/shared/localization/locales/he.json +127 -133
  61. package/shared/localization/locales/hi.json +0 -6
  62. package/shared/localization/locales/hr.json +0 -6
  63. package/shared/localization/locales/hu.json +0 -6
  64. package/shared/localization/locales/id.json +0 -6
  65. package/shared/localization/locales/it.json +0 -6
  66. package/shared/localization/locales/ja.json +115 -121
  67. package/shared/localization/locales/ko.json +2 -8
  68. package/shared/localization/locales/lt.json +0 -6
  69. package/shared/localization/locales/lv.json +0 -6
  70. package/shared/localization/locales/nl.json +0 -6
  71. package/shared/localization/locales/no.json +0 -6
  72. package/shared/localization/locales/pl.json +0 -6
  73. package/shared/localization/locales/pt-PT.json +0 -6
  74. package/shared/localization/locales/pt.json +0 -6
  75. package/shared/localization/locales/ro.json +3 -9
  76. package/shared/localization/locales/ru.json +3 -9
  77. package/shared/localization/locales/sk.json +0 -6
  78. package/shared/localization/locales/sl.json +0 -6
  79. package/shared/localization/locales/sr-Latn.json +0 -6
  80. package/shared/localization/locales/sr.json +0 -6
  81. package/shared/localization/locales/sv.json +0 -6
  82. package/shared/localization/locales/ta.json +0 -6
  83. package/shared/localization/locales/te.json +0 -6
  84. package/shared/localization/locales/th.json +0 -6
  85. package/shared/localization/locales/tr.json +0 -6
  86. package/shared/localization/locales/uk.json +0 -6
  87. package/shared/localization/locales/vi.json +0 -6
  88. package/shared/localization/locales/zh-HK.json +18 -24
  89. package/shared/localization/locales/zh-TW.json +60 -66
  90. package/shared/localization/locales/zh.json +2 -8
  91. package/shared/root.js +1 -3
  92. package/tsconfig.json +0 -2
  93. package/types/artifacts.d.ts +8 -1
  94. package/types/internal/test.d.ts +1 -0
  95. package/core/lib/cdt/package.json +0 -4
  96. package/eslint-local-rules.d.cts +0 -9
  97. package/eslint.config.mjs +0 -242
  98. package/third-party/esbuild-plugins-polyfills/LICENSE +0 -3
  99. package/third-party/esbuild-plugins-polyfills/README.md +0 -7
  100. package/third-party/esbuild-plugins-polyfills/esbuild-polyfills.d.ts +0 -9
  101. package/third-party/esbuild-plugins-polyfills/esbuild-polyfills.js +0 -129
  102. package/types/internal/lookup-closest-locale.d.ts +0 -13
@@ -2249,12 +2249,6 @@
2249
2249
  "node_modules/@paulirish/trace_engine/generated/Deprecation.js | SharedArrayBufferConstructedWithoutIsolation": {
2250
2250
  "message": "SharedArrayBuffer 會要求跨來源隔離。詳情請參閱 https://developer.chrome.com/blog/enabling-shared-array-buffer/。"
2251
2251
  },
2252
- "node_modules/@paulirish/trace_engine/generated/Deprecation.js | SharedStorage": {
2253
- "message": "Shared Storage API 已淘汰,將從後續版本中移除。"
2254
- },
2255
- "node_modules/@paulirish/trace_engine/generated/Deprecation.js | StorageAccessAPI_requestStorageAccessFor_Method": {
2256
- "message": "document.requestStorageAccessFor 已淘汰,日後將予以移除。詳情請參閱 https://privacysandbox.com/news/update-on-plans-for-privacy-sandbox-technologies/。"
2257
- },
2258
2252
  "node_modules/@paulirish/trace_engine/generated/Deprecation.js | TextToSpeech_DisallowedByAutoplay": {
2259
2253
  "message": "無須使用者啟用即可呼叫 speechSynthesis.speak() 的功能已遭淘汰,日後將予以移除。"
2260
2254
  },
@@ -2484,7 +2478,7 @@
2484
2478
  "message": "[找不到出處]"
2485
2479
  },
2486
2480
  "node_modules/@paulirish/trace_engine/models/trace/insights/INPBreakdown.js | description": {
2487
- "message": "Start investigating [how to improve INP](https://developer.chrome.com/docs/performance/insights/inp-breakdown) by looking at the longest subpart"
2481
+ "message": "查看最長的子部分,開始調查 [INP 的改善方式](https://developer.chrome.com/docs/performance/insights/inp-breakdown)"
2488
2482
  },
2489
2483
  "node_modules/@paulirish/trace_engine/models/trace/insights/INPBreakdown.js | duration": {
2490
2484
  "message": "時間長度"
@@ -2535,7 +2529,7 @@
2535
2529
  "message": "這個圖片檔的原始尺寸 ({PH1}) 大於規定的顯示尺寸 ({PH2})。請使用回應式圖片,以縮減圖片下載大小。"
2536
2530
  },
2537
2531
  "node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | useVideoFormat": {
2538
- "message": "Using video formats instead of GIFs can improve the download size of animated content"
2532
+ "message": "使用影片格式而非 GIF,可以縮減動畫內容的下載大小"
2539
2533
  },
2540
2534
  "node_modules/@paulirish/trace_engine/models/trace/insights/LCPBreakdown.js | description": {
2541
2535
  "message": "每個[子部分都有特定改善策略](https://developer.chrome.com/docs/performance/insights/lcp-breakdown)。理想狀態下,大部分的 LCP 時間應該用於載入資源,而非延遲。"
@@ -2682,7 +2676,7 @@
2682
2676
  "message": "這是未使用的預先連結。建議將 preconnect 僅用於網頁可能會要求的來源。"
2683
2677
  },
2684
2678
  "node_modules/@paulirish/trace_engine/models/trace/insights/NetworkDependencyTree.js | warningDescription": {
2685
- "message": "Avoid chaining critical requests by reducing the length of chains, reducing the download size of resources, or deferring the download of unnecessary resources to improve page load"
2679
+ "message": "如要避免鏈結關鍵要求,可以縮短鏈結長度、降低資源的下載大小或延後下載非必要資源,提高頁面載入速度"
2686
2680
  },
2687
2681
  "node_modules/@paulirish/trace_engine/models/trace/insights/RenderBlocking.js | description": {
2688
2682
  "message": "要求阻礙網頁初始算繪,可能導致 LCP 延遲。你可以用[延後或內嵌](https://developer.chrome.com/docs/performance/insights/render-blocking)的方式,將這些網路要求移出關鍵路徑。"
@@ -2748,7 +2742,7 @@
2748
2742
  "message": "第三方"
2749
2743
  },
2750
2744
  "node_modules/@paulirish/trace_engine/models/trace/insights/Viewport.js | description": {
2751
- "message": "Tap interactions may be [delayed by up to 300 ms](https://developer.chrome.com/docs/performance/insights/viewport) if the viewport isn’t optimized for mobile"
2745
+ "message": "如果可視區域未針對行動裝置進行最佳化調整,輕觸互動可能會[延遲最多 300 毫秒](https://developer.chrome.com/docs/performance/insights/viewport)"
2752
2746
  },
2753
2747
  "node_modules/@paulirish/trace_engine/models/trace/insights/Viewport.js | mobileTapDelayLabel": {
2754
2748
  "message": "行動裝置輕觸延遲"
@@ -2757,10 +2751,10 @@
2757
2751
  "message": "針對行動裝置最佳化可視區域"
2758
2752
  },
2759
2753
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | HTTPMethodNotGET": {
2760
- "message": "Only pages loaded via a GET request are eligible for back/forward cache"
2754
+ "message": "只有透過 GET 要求載入的頁面,才適用往返快取"
2761
2755
  },
2762
2756
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | HTTPStatusNotOK": {
2763
- "message": "Only pages with a status code of 2XX can be cached"
2757
+ "message": "只能快取狀態碼為 2XX 的頁面"
2764
2758
  },
2765
2759
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | JavaScriptExecution": {
2766
2760
  "message": "Chrome 偵測到試圖在快取中執行 JavaScript 的作業"
@@ -2781,7 +2775,7 @@
2781
2775
  "message": "委派目標不支援往返快取"
2782
2776
  },
2783
2777
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | backForwardCacheDisabledForPrerender": {
2784
- "message": "Back/forward cache is disabled for prerenderer"
2778
+ "message": "為了執行預先轉譯器,往返快取已停用"
2785
2779
  },
2786
2780
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | broadcastChannel": {
2787
2781
  "message": "這個網頁有內含已註冊事件監聽器的 BroadcastChannel 例項,因此無法快取"
@@ -2790,25 +2784,25 @@
2790
2784
  "message": "含有 cache-control:no-store 標頭的網頁無法儲存到往返快取"
2791
2785
  },
2792
2786
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | cacheFlushed": {
2793
- "message": "The cache was intentionally cleared"
2787
+ "message": "快取已遭刻意清除"
2794
2788
  },
2795
2789
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | cacheLimit": {
2796
- "message": "The page was evicted from the cache to allow another page to be cached"
2790
+ "message": "為了讓系統能夠快取其他頁面,這個頁面已從快取中移除"
2797
2791
  },
2798
2792
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | containsPlugins": {
2799
- "message": "Pages containing plugins are not currently eligible for back/forward cache"
2793
+ "message": "含有外掛程式的頁面目前不適用往返快取"
2800
2794
  },
2801
2795
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | contentDiscarded": {
2802
2796
  "message": "未定義"
2803
2797
  },
2804
2798
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | contentFileChooser": {
2805
- "message": "Pages that use FileChooser API are not eligible for back/forward cache"
2799
+ "message": "使用 FileChooser API 的頁面不適用往返快取"
2806
2800
  },
2807
2801
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | contentFileSystemAccess": {
2808
- "message": "Pages that use File System Access API are not eligible for back/forward cache"
2802
+ "message": "使用 File System Access API 的頁面不適用往返快取"
2809
2803
  },
2810
2804
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | contentMediaDevicesDispatcherHost": {
2811
- "message": "Pages that use Media Device Dispatcher are not eligible for back/forward cache"
2805
+ "message": "使用媒體裝置調度工具的頁面不適用往返快取"
2812
2806
  },
2813
2807
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | contentMediaPlay": {
2814
2808
  "message": "使用者離開網頁時,媒體播放器正在播放內容"
@@ -2817,16 +2811,16 @@
2817
2811
  "message": "使用 MediaSession API 並設定播放狀態的網頁不適用往返快取"
2818
2812
  },
2819
2813
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | contentMediaSessionService": {
2820
- "message": "Pages that use MediaSession API and set action handlers are not eligible for back/forward cache"
2814
+ "message": "使用 MediaSession API 並設定動作處理常式的頁面不適用往返快取"
2821
2815
  },
2822
2816
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | contentScreenReader": {
2823
- "message": "Back/forward cache is disabled due to screen reader"
2817
+ "message": "由於螢幕閱讀器的關係,往返快取已停用"
2824
2818
  },
2825
2819
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | contentSecurityHandler": {
2826
- "message": "Pages that use SecurityHandler are not eligible for back/forward cache"
2820
+ "message": "使用 SecurityHandler 的頁面不適用往返快取"
2827
2821
  },
2828
2822
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | contentSerial": {
2829
- "message": "Pages that use Serial API are not eligible for back/forward cache"
2823
+ "message": "使用 Serial API 的頁面不適用往返快取"
2830
2824
  },
2831
2825
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | contentWebAuthenticationAPI": {
2832
2826
  "message": "使用 WebAuthetication API 的網頁不適用往返快取"
@@ -2841,22 +2835,22 @@
2841
2835
  "message": "使用 Cache-Control: no-store 的頁面停用了 Cookie,因此系統已停用往返快取"
2842
2836
  },
2843
2837
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | dedicatedWorkerOrWorklet": {
2844
- "message": "Pages that use a dedicated worker or worklet are not currently eligible for back/forward cache"
2838
+ "message": "使用專屬 Worker 或 Worklet 的頁面目前不適用往返快取"
2845
2839
  },
2846
2840
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | documentLoaded": {
2847
2841
  "message": "文件未在使用者離開前完成載入"
2848
2842
  },
2849
2843
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | embedderAppBannerManager": {
2850
- "message": "App Banner was present upon navigating away"
2844
+ "message": "使用者離開頁面時,系統顯示了應用程式橫幅"
2851
2845
  },
2852
2846
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | embedderChromePasswordManagerClientBindCredentialManager": {
2853
2847
  "message": "使用者離開網頁時,系統顯示了 Chrome 密碼管理工具"
2854
2848
  },
2855
2849
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | embedderDomDistillerSelfDeletingRequestDelegate": {
2856
- "message": "DOM distillation was in progress upon navigating away"
2850
+ "message": "使用者離開頁面時,系統正在處理 DOM 內容擷取"
2857
2851
  },
2858
2852
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | embedderDomDistillerViewerSource": {
2859
- "message": "DOM Distiller Viewer was present upon navigating away"
2853
+ "message": "使用者離開頁面時,系統顯示了 DOM Distiller Viewer"
2860
2854
  },
2861
2855
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | embedderExtensionMessaging": {
2862
2856
  "message": "由於擴充功能使用訊息 API,因此往返快取已停用"
@@ -2868,22 +2862,22 @@
2868
2862
  "message": "可持續連線的擴充功能試圖在往返快取中傳送訊息給頁框"
2869
2863
  },
2870
2864
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | embedderExtensions": {
2871
- "message": "Back/forward cache is disabled due to extensions"
2865
+ "message": "由於擴充功能的關係,往返快取已停用"
2872
2866
  },
2873
2867
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | embedderModalDialog": {
2874
- "message": "Modal dialog such as form resubmission or http password dialog was shown for the page upon navigating away"
2868
+ "message": "使用者離開頁面時,頁面上顯示了強制回應對話方塊,例如重新提交表單或 HTTP 密碼對話方塊"
2875
2869
  },
2876
2870
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | embedderOfflinePage": {
2877
2871
  "message": "使用者離開網頁時,系統顯示了離線頁面"
2878
2872
  },
2879
2873
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | embedderOomInterventionTabHelper": {
2880
- "message": "Out-Of-Memory Intervention bar was present upon navigating away"
2874
+ "message": "使用者離開頁面時,系統顯示了記憶體不足干預提示列"
2881
2875
  },
2882
2876
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | embedderPermissionRequestManager": {
2883
- "message": "There were permission requests upon navigating away"
2877
+ "message": "使用者離開頁面時,系統會要求權限"
2884
2878
  },
2885
2879
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | embedderPopupBlockerTabHelper": {
2886
- "message": "Popup blocker was present upon navigating away"
2880
+ "message": "使用者離開頁面時,系統顯示了彈出式視窗攔截器"
2887
2881
  },
2888
2882
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | embedderSafeBrowsingThreatDetails": {
2889
2883
  "message": "使用者離開網頁時,系統顯示了安全瀏覽詳細資料"
@@ -2895,19 +2889,19 @@
2895
2889
  "message": "Service Worker 已在網頁儲存於往返快取時啟用"
2896
2890
  },
2897
2891
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | errorDocument": {
2898
- "message": "Back/forward cache is disabled due to a document error"
2892
+ "message": "由於文件發生錯誤,往返快取已停用"
2899
2893
  },
2900
2894
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | fencedFramesEmbedder": {
2901
- "message": "Pages using FencedFrames cannot be stored in bfcache"
2895
+ "message": "使用 FencedFrames 的頁面無法儲存在往返快取中"
2902
2896
  },
2903
2897
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | foregroundCacheLimit": {
2904
- "message": "The page was evicted from the cache to allow another page to be cached"
2898
+ "message": "為了讓系統能夠快取其他頁面,這個頁面已從快取中移除"
2905
2899
  },
2906
2900
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | grantedMediaStreamAccess": {
2907
2901
  "message": "已授予媒體串流播放存取權的網頁目前不適用往返快取"
2908
2902
  },
2909
2903
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | haveInnerContents": {
2910
- "message": "Pages that have certain kinds of embedded content (e.g. PDFs) are not currently eligible for back/forward cache"
2904
+ "message": "如果頁面含有特定類型的嵌入內容 (例如 PDF),目前不適用往返快取"
2911
2905
  },
2912
2906
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | idleManager": {
2913
2907
  "message": "使用 IdleManager 的網頁目前不適用往返快取"
@@ -2916,10 +2910,10 @@
2916
2910
  "message": "含有開放式 IndexedDB 連線的網頁目前不適用往返快取"
2917
2911
  },
2918
2912
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | indexedDBEvent": {
2919
- "message": "Back/forward cache is disabled due to an IndexedDB event"
2913
+ "message": "發生 IndexedDB 事件,因此往返快取已停用"
2920
2914
  },
2921
2915
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | ineligibleAPI": {
2922
- "message": "Ineligible APIs were used"
2916
+ "message": "使用了不支援的 API"
2923
2917
  },
2924
2918
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | injectedJavascript": {
2925
2919
  "message": "擴充功能插入 JavaScript 的網頁目前不適用往返快取"
@@ -2928,10 +2922,10 @@
2928
2922
  "message": "由擴充功能插入 StyleSheet 的網頁目前不適用往返快取"
2929
2923
  },
2930
2924
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | internalError": {
2931
- "message": "Internal error"
2925
+ "message": "內部錯誤"
2932
2926
  },
2933
2927
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | jsNetworkRequestReceivedCacheControlNoStoreResource": {
2934
- "message": "Back/forward cache is disabled because some JavaScript network request received resource with Cache-Control: no-store header"
2928
+ "message": "部分 JavaScript 網路要求收到含有 Cache-Control: no-store 標頭的資源,因此往返快取已停用"
2935
2929
  },
2936
2930
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | keepaliveRequest": {
2937
2931
  "message": "由於系統收到保持運作要求,因此往返快取已停用"
@@ -2940,7 +2934,7 @@
2940
2934
  "message": "使用鍵盤鎖定功能的網頁目前不適用往返快取"
2941
2935
  },
2942
2936
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | loading": {
2943
- "message": "The page did not finish loading before navigating away"
2937
+ "message": "頁面未在使用者離開前完成載入"
2944
2938
  },
2945
2939
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | mainResourceHasCacheControlNoCache": {
2946
2940
  "message": "主要資源含有 cache-control:no-cache 的網頁無法儲存到往返快取"
@@ -2955,7 +2949,7 @@
2955
2949
  "message": "由於某個作用中的網路連線收到太多資料,因此該網頁已從快取中移除。Chrome 會限制網頁處於快取狀態時可接收的資料量。"
2956
2950
  },
2957
2951
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | networkRequestDatapipeDrainedAsBytesConsumer": {
2958
- "message": "Pages that have inflight fetch() or XHR are not currently eligible for back/forward cache"
2952
+ "message": "含有 in-flight fetch() 或 XHR 的頁面目前不適用往返快取"
2959
2953
  },
2960
2954
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | networkRequestRedirected": {
2961
2955
  "message": "某個作用中的網路要求涉及重新導向,因此網頁已從往返快取中移除"
@@ -2967,10 +2961,10 @@
2967
2961
  "message": "不含有效回應標頭的網頁無法儲存到往返快取"
2968
2962
  },
2969
2963
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | notMainFrame": {
2970
- "message": "Navigation happened in a frame other than the main frame"
2964
+ "message": "瀏覽作業是在主頁框以外的頁框中執行"
2971
2965
  },
2972
2966
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | outstandingIndexedDBTransaction": {
2973
- "message": "Page with ongoing indexed DB transactions are not currently eligible for back/forward cache"
2967
+ "message": "頁面含有進行中的已建立索引資料庫交易,因此目前不適用往返快取"
2974
2968
  },
2975
2969
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | outstandingNetworkRequestDirectSocket": {
2976
2970
  "message": "含有 in-flight 網路要求的網頁目前不適用往返快取"
@@ -2979,40 +2973,40 @@
2979
2973
  "message": "含有 in-flight 擷取網路要求的網頁目前不適用往返快取"
2980
2974
  },
2981
2975
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | outstandingNetworkRequestOthers": {
2982
- "message": "Pages with an in-flight network request are not currently eligible for back/forward cache"
2976
+ "message": "含有 in-flight 網路要求的頁面目前不適用往返快取"
2983
2977
  },
2984
2978
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | outstandingNetworkRequestXHR": {
2985
- "message": "Pages with an in-flight XHR network request are not currently eligible for back/forward cache"
2979
+ "message": "含有 in-flight XHR 網路要求的頁面目前不適用往返快取"
2986
2980
  },
2987
2981
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | paymentManager": {
2988
2982
  "message": "使用 PaymentManager 的網頁目前不適用往返快取"
2989
2983
  },
2990
2984
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | pictureInPicture": {
2991
- "message": "Pages that use Picture-in-Picture are not currently eligible for back/forward cache"
2985
+ "message": "使用子母畫面的頁面目前不適用往返快取"
2992
2986
  },
2993
2987
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | printing": {
2994
2988
  "message": "顯示列印使用者介面的網頁目前不適用往返快取"
2995
2989
  },
2996
2990
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | relatedActiveContentsExist": {
2997
- "message": "The page was opened using 'window.open()' and another tab has a reference to it, or the page opened a window"
2991
+ "message": "這個頁面已透過「window.open()」開啟,且其他分頁含有該頁面的參照內容,或者該頁面開啟了視窗"
2998
2992
  },
2999
2993
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | rendererProcessCrashed": {
3000
- "message": "The renderer process for the page in back/forward cache crashed"
2994
+ "message": "往返快取中頁面的轉譯器程序異常終止"
3001
2995
  },
3002
2996
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | rendererProcessKilled": {
3003
2997
  "message": "往返快取中網頁的轉譯器程序已終止"
3004
2998
  },
3005
2999
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | requestedAudioCapturePermission": {
3006
- "message": "Pages that have requested audio capture permissions are not currently eligible for back/forward cache"
3000
+ "message": "已要求音訊擷取權限的頁面目前不適用往返快取"
3007
3001
  },
3008
3002
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | requestedBackForwardCacheBlockedSensors": {
3009
3003
  "message": "已要求感應器權限的網頁目前不適用往返快取"
3010
3004
  },
3011
3005
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | requestedBackgroundWorkPermission": {
3012
- "message": "Pages that have requested background sync or fetch permissions are not currently eligible for back/forward cache"
3006
+ "message": "已要求背景同步或擷取權限的頁面目前不適用往返快取"
3013
3007
  },
3014
3008
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | requestedMIDIPermission": {
3015
- "message": "Pages that have requested MIDI permissions are not currently eligible for back/forward cache"
3009
+ "message": "已要求 MIDI 權限的頁面目前不適用往返快取"
3016
3010
  },
3017
3011
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | requestedNotificationsPermission": {
3018
3012
  "message": "要求通知權限的網頁目前不適用往返快取"
@@ -3027,7 +3021,7 @@
3027
3021
  "message": "只能快取網址配置為 HTTP/HTTPS 的網頁"
3028
3022
  },
3029
3023
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | serviceWorkerClaim": {
3030
- "message": "The page was claimed by a service worker while it is in back/forward cache"
3024
+ "message": "頁面已在儲存於往返快取時由 Service Worker 聲明擁有權"
3031
3025
  },
3032
3026
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | serviceWorkerPostMessage": {
3033
3027
  "message": "Service Worker 已嘗試向往返快取中的網頁傳送 MessageEvent"
@@ -3039,7 +3033,7 @@
3039
3033
  "message": "系統啟用了 Service Worker,因此網頁已從往返快取中移除"
3040
3034
  },
3041
3035
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | sessionRestored": {
3042
- "message": "Chrome restarted and cleared the back/forward cache entries"
3036
+ "message": "Chrome 已重新啟動,並清除往返快取項目"
3043
3037
  },
3044
3038
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | sharedWorker": {
3045
3039
  "message": "使用 SharedWorker 的網頁目前不適用往返快取"
@@ -3048,13 +3042,13 @@
3048
3042
  "message": "網頁收到來自 SharedWorker 的訊息,因此已從快取中移除"
3049
3043
  },
3050
3044
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | speechRecognizer": {
3051
- "message": "Pages that use SpeechRecognizer are not currently eligible for back/forward cache"
3045
+ "message": "使用 SpeechRecognizer 的頁面目前不適用往返快取"
3052
3046
  },
3053
3047
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | speechSynthesis": {
3054
3048
  "message": "使用 SpeechSynthesis 的網頁目前不適用往返快取"
3055
3049
  },
3056
3050
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | subframeIsNavigating": {
3057
- "message": "An iframe on the page started a navigation that did not complete"
3051
+ "message": "頁面上的 iframe 已開始進行導覽,但尚未完成"
3058
3052
  },
3059
3053
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | subresourceHasCacheControlNoCache": {
3060
3054
  "message": "子資源含有 cache-control:no-cache 的網頁無法儲存到往返快取"
@@ -3066,10 +3060,10 @@
3066
3060
  "message": "網頁超出存放在往返快取中的時間上限,因此已失效"
3067
3061
  },
3068
3062
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | timeoutPuttingInCache": {
3069
- "message": "The page timed out entering back/forward cache (likely due to long-running pagehide handlers)"
3063
+ "message": "將頁面儲存至往返快取的作業逾時,原因可能是頁面隱藏事件處理常式的執行時間太長"
3070
3064
  },
3071
3065
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | unloadHandlerExistsInMainFrame": {
3072
- "message": "The page has an unload handler in the main frame"
3066
+ "message": "頁面在主頁框中含有卸載處理常式"
3073
3067
  },
3074
3068
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | unloadHandlerExistsInSubFrame": {
3075
3069
  "message": "網頁在子頁框中含有卸載處理常式"
@@ -3078,13 +3072,13 @@
3078
3072
  "message": "瀏覽器已變更使用者代理程式覆寫標頭"
3079
3073
  },
3080
3074
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | wasGrantedMediaAccess": {
3081
- "message": "Pages that have granted access to record video or audio are not currently eligible for back/forward cache"
3075
+ "message": "已獲准錄製影片或錄音的頁面目前不適用往返快取"
3082
3076
  },
3083
3077
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | webDatabase": {
3084
3078
  "message": "使用 WebDatabase 的網頁目前不適用往返快取"
3085
3079
  },
3086
3080
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | webHID": {
3087
- "message": "Pages that use WebHID are not currently eligible for back/forward cache"
3081
+ "message": "使用 WebHID 的頁面目前不適用往返快取"
3088
3082
  },
3089
3083
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | webLocks": {
3090
3084
  "message": "使用 WebLocks 的網頁目前不適用往返快取"
@@ -3096,7 +3090,7 @@
3096
3090
  "message": "使用 WebOTPService 的網頁目前不適用往返快取"
3097
3091
  },
3098
3092
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | webRTC": {
3099
- "message": "Pages with WebRTC cannot enter back/forward cache"
3093
+ "message": "使用 WebRTC 的頁面無法儲存到往返快取"
3100
3094
  },
3101
3095
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | webRTCUsedWithCCNS": {
3102
3096
  "message": "目前使用 WebRTC,因此系統停用了往返快取功能"
@@ -3105,19 +3099,19 @@
3105
3099
  "message": "使用 WebShare 的網頁目前不適用往返快取"
3106
3100
  },
3107
3101
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | webSocket": {
3108
- "message": "Pages with WebSocket cannot enter back/forward cache"
3102
+ "message": "使用 WebSocket 的頁面無法儲存到往返快取"
3109
3103
  },
3110
3104
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | webSocketUsedWithCCNS": {
3111
- "message": "Back/forward cache is disabled because WebSocket has been used"
3105
+ "message": "已使用 WebSocket,因此往返快取已停用"
3112
3106
  },
3113
3107
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | webTransport": {
3114
- "message": "Pages with WebTransport cannot enter back/forward cache"
3108
+ "message": "使用 WebTransport 的頁面無法儲存到往返快取"
3115
3109
  },
3116
3110
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | webTransportUsedWithCCNS": {
3117
- "message": "Back/forward cache is disabled because WebTransport has been used"
3111
+ "message": "已使用 WebTransport,因此往返快取已停用"
3118
3112
  },
3119
3113
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | webXR": {
3120
- "message": "Pages that use WebXR are not currently eligible for back/forward cache"
3114
+ "message": "使用 WebXR 的頁面目前不適用往返快取"
3121
3115
  },
3122
3116
  "node_modules/lighthouse-stack-packs/packs/amp.js | efficient-animated-content": {
3123
3117
  "message": "你可以對動畫內容使用 [`amp-anim`](https://amp.dev/documentation/components/amp-anim/),這樣一來,畫面外的內容即會盡量節省 CPU 用量。"
@@ -2249,12 +2249,6 @@
2249
2249
  "node_modules/@paulirish/trace_engine/generated/Deprecation.js | SharedArrayBufferConstructedWithoutIsolation": {
2250
2250
  "message": "SharedArrayBuffer 将要求进行跨域隔离。如需了解详情,请访问 https://developer.chrome.com/blog/enabling-shared-array-buffer/。"
2251
2251
  },
2252
- "node_modules/@paulirish/trace_engine/generated/Deprecation.js | SharedStorage": {
2253
- "message": "Shared Storage API 已弃用,将在未来版本中移除。"
2254
- },
2255
- "node_modules/@paulirish/trace_engine/generated/Deprecation.js | StorageAccessAPI_requestStorageAccessFor_Method": {
2256
- "message": "document.requestStorageAccessFor 已被弃用,并将被移除。如需了解详情,请访问 https://privacysandbox.com/news/update-on-plans-for-privacy-sandbox-technologies/。"
2257
- },
2258
2252
  "node_modules/@paulirish/trace_engine/generated/Deprecation.js | TextToSpeech_DisallowedByAutoplay": {
2259
2253
  "message": "无需用户激活的 speechSynthesis.speak() 已被弃用,并将被移除。"
2260
2254
  },
@@ -3036,7 +3030,7 @@
3036
3030
  "message": "在网页储存于往返缓存期间,ServiceWorker 被取消注册了"
3037
3031
  },
3038
3032
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | serviceWorkerVersionActivation": {
3039
- "message": "该网页被逐出了往返缓存,因为有一个 Service Worker 被启用了"
3033
+ "message": "由于有 Service Worker 被激活,该网页被逐出了往返缓存"
3040
3034
  },
3041
3035
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | sessionRestored": {
3042
3036
  "message": "Chrome 重启了,因而清除了往返缓存条目"
@@ -3072,7 +3066,7 @@
3072
3066
  "message": "该网页的主框架中含有一款卸载处理程序"
3073
3067
  },
3074
3068
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | unloadHandlerExistsInSubFrame": {
3075
- "message": "该网页的子框架中含有一款卸载处理程序"
3069
+ "message": "该网页的子框架中含有卸载处理程序"
3076
3070
  },
3077
3071
  "node_modules/@paulirish/trace_engine/panels/application/components/BackForwardCacheStrings.js | userAgentOverrideDiffers": {
3078
3072
  "message": "浏览器更改了用户代理替换标头"
package/shared/root.js CHANGED
@@ -7,9 +7,7 @@
7
7
  import fs from 'fs';
8
8
  import path from 'path';
9
9
 
10
- import {getModuleDirectory} from './esm-utils.js';
11
-
12
- const LH_ROOT = path.dirname(getModuleDirectory(import.meta));
10
+ const LH_ROOT = path.dirname(import.meta.dirname);
13
11
  const pkg = JSON.parse(fs.readFileSync(`${LH_ROOT}/package.json`, 'utf-8'));
14
12
  const lighthouseVersion = pkg.version;
15
13
 
package/tsconfig.json CHANGED
@@ -18,9 +18,7 @@
18
18
  "build/**/*.js",
19
19
  "types.js",
20
20
  "./types/**/*.d.ts",
21
- "eslint-local-rules.cjs",
22
21
  "third-party/axe/valid-langs.js",
23
- "third-party/esbuild-plugins-polyfills/esbuild-polyfills.js",
24
22
  "third-party/ard/**/*.js",
25
23
 
26
24
  "core/test/results/sample_v2.json",
@@ -12,7 +12,7 @@ import { parseManifest } from '../core/lib/manifest-parser.js';
12
12
  import { LighthouseError } from '../core/lib/lh-error.js';
13
13
  import { NetworkRequest as _NetworkRequest } from '../core/lib/network-request.js';
14
14
  import speedline from 'speedline-core';
15
- import * as CDTSourceMap from '../core/lib/cdt/generated/SourceMap.js';
15
+ import CDTSourceMap from '../core/lib/cdt/generated/SourceMap.js';
16
16
  import { ArbitraryEqualityMap } from '../core/lib/arbitrary-equality-map.js';
17
17
  import type { TaskNode as _TaskNode } from '../core/lib/tracehouse/main-thread-tasks.js';
18
18
  import AuditDetails from './lhr/audit-details.js'
@@ -931,6 +931,13 @@ export interface TraceEvent {
931
931
  protocol?: string;
932
932
  finishTime?: number;
933
933
  headers?: Array<{ name: string, value: string }>;
934
+ scriptId?: number;
935
+ sourceText?: string;
936
+ isolate?: number | string;
937
+ executionContextId?: number;
938
+ sourceUrl?: string;
939
+ splitIndex?: number;
940
+ splitCount?: number;
934
941
  };
935
942
  frame?: string;
936
943
  name?: string;
@@ -29,6 +29,7 @@ declare module 'expect' {
29
29
  */
30
30
  // tslint:disable-next-line: no-unnecessary-generics
31
31
  toMatchInlineSnapshot<U extends { [P in keyof T]: any }>(propertyMatchers: Partial<U>, snapshot?: string): R;
32
+ toMatchInlineSnapshot(snapshot?: string): R;
32
33
 
33
34
  // The following are custom matchers defined in expect-setup.js
34
35
 
@@ -1,4 +0,0 @@
1
- {
2
- "type": "commonjs",
3
- "//": "Temporary file until made esm"
4
- }
@@ -1,9 +0,0 @@
1
- declare namespace _exports {
2
- export { RuleModule };
3
- }
4
- declare const _exports: {
5
- 'require-file-extension': import("eslint").Rule.RuleModule;
6
- };
7
- export = _exports;
8
- type RuleModule = import("eslint").Rule.RuleModule;
9
- //# sourceMappingURL=eslint-local-rules.d.cts.map