diff --git a/src/parser/config.ts b/src/parser/config.ts index 275f9c05..fd87e614 100644 --- a/src/parser/config.ts +++ b/src/parser/config.ts @@ -57,7 +57,8 @@ const getConfig = (): Config => { } catch {} } - if (config === undefined) return defaultConfig; + // revert to default config if no config found + config = config ?? defaultConfig; // get styles, scripts and ignore files config.styles = getFileContents(config.styles);