diff --git a/src/index.ts b/src/index.ts index 8702dff..338222c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -53,7 +53,12 @@ const configForComponent = ( 'default' in componentConfig ? componentConfig.default : componentConfig; return fn(rootTheme); } catch (error) { - log(error); + if (error instanceof SyntaxError) { + throw error; + } else { + log(error); + } + return {}; } };