pnpm why axe-core in our repository prints this:
[email protected] βββ¬ [email protected] βββ¬ [email protected] βββ [email protected] (devDependencies)
Enter fullscreen mode
Exit fullscreen mode
A full accessibility engine, 572 KB of it, installed because a config package depends on a lint plugin that depends on it. Our lint script is next lint , which Next 16 removed, so the linter at the end of that chain cannot run at all, and there is no .github directory, so nothing would have run it anyway.
The engine does not need the linter. It is a browser bundle sitting on disk, so I pointed it at the live site instead:
const axeSrc = await readFile ( 'node_modules/.pnpm/[email protected]/node_modules/axe-core/axe.min.js' , 'utf8' ) ; await page . goto ( 'https://pub-trivia.app/faq' ) ; await page . evaluate ( axeSrc ) ; // defines window.axe const r = await page . evaluate ( ( ) => axe .β¦