You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @puppeteer/replay is compiled without errors when it is installed as a dependency.
Actual Behavior
An error occurs when I bundle my app:
[vite]: Rollup failed to resolve import "lighthouse/core/fraggle-rock/api.js" from "node_modules/@puppeteer/replay/lib/main.js".
This is due to lighthouse missing from the dependencies and/or peerDependencies in package.json. lighthouse is listed only as a devDependency, while in fact it is a normal dependency since the library source depends on it.
I would expect tree shaking prevent rollup from using LighthouseRunnerExtension and therefore remove the need to import Lighthouse.
In any case, we should remove the lighthouse runner extension from the main bundle. Eventually we will make Lighthouse a peer dependency, but Lighthouse needs a lot of work with rollup plugins to work in bundled environments. If rollup can't automatically trim the Lighthouse import statements, maybe we should add a separate import path for Lighthouse like @puppeteer/replay/lighthouse.
Expected Behavior
The @puppeteer/replay is compiled without errors when it is installed as a dependency.
Actual Behavior
An error occurs when I bundle my app:
This is due to lighthouse missing from the dependencies and/or peerDependencies in package.json.
lighthouse
is listed only as a devDependency, while in fact it is a normal dependency since the library source depends on it.Steps to Reproduce the Problem
import { PuppeteerRunnerExtension } from '@puppeteer/replay'
Specifications
The text was updated successfully, but these errors were encountered: