Skip to content

Commit

Permalink
Error Handling in babel-helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
felickz authored Oct 25, 2024
1 parent b13a5d5 commit 00d338d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/babel-helpers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type GetDependency = (name: string) => t.Expression;
function deep(obj: any, path: string, value?: unknown) {
try {
const parts = path.split(".");
if (parts != null) throw err
let last = parts.shift();
while (parts.length > 0) {
obj = obj[last];
Expand Down

0 comments on commit 00d338d

Please sign in to comment.