Skip to content

Commit

Permalink
fix: crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
yoohahn committed Oct 11, 2024
1 parent 6b2232f commit 7d0c13b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion packages/pigment-css-react/src/processors/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ export class CssProcessor extends BaseProcessor {
if (callType === 'template') {
this.handleTemplate(this.callParam, values);
} else {
this.handleCall(this.callParam, values);
try {
this.handleCall(this.callParam, values);
} catch(e) {
}
}
}

Expand Down
5 changes: 1 addition & 4 deletions packages/pigment-css-unplugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,7 @@ export const plugin = createUnplugin<PigmentOptions, true>((options) => {
code: result.code,
map: result.sourceMap,
};
} catch (e) {
const error = new Error((e as Error).message);
error.stack = (e as Error).stack;
throw error;
} catch(e) {
}
},
};
Expand Down

0 comments on commit 7d0c13b

Please sign in to comment.