Open stevez opened 11 months ago
can you explain this line, why it is ended with js?
import desktopConfig from 'lighthouse/lighthouse-core/config/desktop-config.js';
https://github.com/haideralii/playwright-lighthouse-test/blob/afb583a66e0854cc4d0fec7a76088f9357233609/tests/lighhouse-performance-test.spec.ts#L3
I'm not the repo's owner, but I suspect it finishes with .js because of the JS/TS compiler (probably some of the npm packages are using ESNext).
.js
On the other hand, that line can be moved to the helpers.ts file.
can you explain this line, why it is ended with js?
import desktopConfig from 'lighthouse/lighthouse-core/config/desktop-config.js';
https://github.com/haideralii/playwright-lighthouse-test/blob/afb583a66e0854cc4d0fec7a76088f9357233609/tests/lighhouse-performance-test.spec.ts#L3