From d20953cb06cd87aa04753696920fca8b82dab077 Mon Sep 17 00:00:00 2001 From: Johan Nilsson Date: Fri, 11 Oct 2024 10:33:48 +0200 Subject: [PATCH] fix: crashes --- packages/pigment-css-unplugin/src/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) { } }, };