Skip to content

Commit

Permalink
Fixed build script
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Apr 8, 2024
1 parent 298d0be commit 646c784
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ const {
});

async function exportsOf(name) {
const mod = await import(name);
return Object.keys(mod).filter(key => key != 'default');
try {
return Object.keys(await import(name)).filter(key => key != 'default');
} catch (e) {
return [];
}
}

function start() {
Expand Down

0 comments on commit 646c784

Please sign in to comment.