diff --git a/packages/pigment-css-react/src/processors/css.ts b/packages/pigment-css-react/src/processors/css.ts index 7511c7a3..de0f495a 100644 --- a/packages/pigment-css-react/src/processors/css.ts +++ b/packages/pigment-css-react/src/processors/css.ts @@ -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){ + } } } diff --git a/packages/pigment-css-unplugin/src/index.ts b/packages/pigment-css-unplugin/src/index.ts index 08b426e0..2a75f090 100644 --- a/packages/pigment-css-unplugin/src/index.ts +++ b/packages/pigment-css-unplugin/src/index.ts @@ -356,10 +356,7 @@ export const plugin = createUnplugin((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) { } }, };