Skip to content

Commit

Permalink
chore(deps): Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
darkobits committed Jun 25, 2023
1 parent 5e11ad3 commit 2916ee2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions src/lib/configuration/strategies/babel-register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ export async function babelRegisterStrategy(filePath: string, pkgInfo: PackageIn
const result = await import(loaderPath);
await fs.remove(tempDir);

log.verbose(log.prefix('parseConfiguration'), `Loaded configuration with ${log.chalk.bold('@babel/register')}.`, result);

return result.default ?? result;
} catch (err) {
throw new Error(`${log.prefix('parseConfiguration')} Failed to load configuration with ${log.chalk.bold('@babel/register')}: ${err}`);
} catch (cause: any) {
throw new Error(
`${log.prefix('babelRegisterStrategy')} Failed to load configuration file: ${cause}`,
{ cause }
);
}
}

0 comments on commit 2916ee2

Please sign in to comment.