From 4e2bd9ec78748bd31cbd5fb724a7a28c5bd1fba2 Mon Sep 17 00:00:00 2001 From: Ans Date: Wed, 30 Oct 2024 18:20:39 -0400 Subject: [PATCH] Migrate Lighthouse config from CommonJS to ES6 module --- lighthouserc.cjs => lighthouserc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename lighthouserc.cjs => lighthouserc.js (96%) diff --git a/lighthouserc.cjs b/lighthouserc.js similarity index 96% rename from lighthouserc.cjs rename to lighthouserc.js index b803f66ad6..b0cb70c332 100644 --- a/lighthouserc.cjs +++ b/lighthouserc.js @@ -1,5 +1,5 @@ -const glob = require('glob'); -const path = require('path'); +import { glob } from 'glob'; +import { path } from 'path'; let extraCollect = {}; @@ -48,7 +48,7 @@ if (!urlsSpecified) { }; } -module.exports = { +export default { ci: { collect: { numberOfRuns: 1,