user-flow icon indicating copy to clipboard operation
user-flow copied to clipboard

Update to LHv10🔥

Open BioPhoton opened this issue 3 years ago • 0 comments

Update lighthouse to v10

This enables better TS support and unlock new audits like bf cache.

The migration process includes the following refactorings:

  • [x] drop lh imports from hacky-things folder
  • [ ] refactor the bin reference in the package.json and prepare cli.js esm
  • [x] use the new types
  • [x] update the mock
  • [x] type the runner properly
  • [ ] ensure GH action works
  • [ ] update exports
  • [ ] update tests
  • [x] #31

Learnings

  • Test repo: https://github.com/push-based/ts-with-node-esm
  • Puppeteer replay upgraded to ESM: https://github.com/puppeteer/replay
  • We can execute npx using esm modules
  • Figure out how to get ergonomic builds
  • We are unable to run jest test because of the migration to ESM

BioPhoton avatar Dec 21 '22 20:12 BioPhoton