A plugin for sitespeed.io that identifies and logs JavaScript errors during web performance testing. Current stable version is 2026.6.0, released as part of sitespeed.io's yearly release cycle. Integrates seamlessly with sitespeed.io to capture JS errors from browser sessions and report them. Unlike general error monitoring tools, it is specifically built for sitespeed.io's plugin architecture and complements webperf-core. Requires Node.js >=20.x and sitespeed.io as a peer dependency.
npm install plugin-javascriptNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to enable and use the plugin with sitespeed.io programmatically, capturing JavaScript errors from a web page.
Upgrade Node.js to version 20.x or higher.
Use import syntax or dynamic import().
Change config from { javascript: { ... } } to { 'plugin-javascript': { ... } }.Ensure sitespeed.io is a peer dependency and loaded first.
Use a browser configuration that enables JavaScript error reporting.
Run npm install plugin-javascript
Change config to use 'plugin-javascript' as the plugin key
Use import or dynamic import, or downgrade to a version that supports CommonJS