mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 20:05:58 +00:00
Add debug lighthouse import
This commit is contained in:
17
debug-import-lighthouse.mjs
Normal file
17
debug-import-lighthouse.mjs
Normal file
@@ -0,0 +1,17 @@
|
||||
(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);
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user