mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-18 04:05:58 +00:00
18 lines
524 B
JavaScript
18 lines
524 B
JavaScript
(async () => {
|
|
console.log('Checking lighthouse exports...');
|
|
try {
|
|
const imported = await import('lighthouse');
|
|
console.log('Import Keys:', Object.keys(imported));
|
|
|
|
if (imported.default) {
|
|
console.log('Default export exists.');
|
|
console.log('Verifying default is function:', typeof imported.default);
|
|
} else {
|
|
console.log('Default export is undefined.');
|
|
}
|
|
|
|
} catch (e) {
|
|
console.error('Import failed:', e);
|
|
}
|
|
})();
|