Skip to content

Commit

Permalink
fix: add condition to have addons
Browse files Browse the repository at this point in the history
  • Loading branch information
oripka committed Nov 18, 2024
1 parent d90ed29 commit 434df02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/slidev/node/setups/preparser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { loadSetups } from './load'
export default function setupPreparser() {
injectPreparserExtensionLoader(async (headmatter: Record<string, unknown>, filepath: string, mode?: string) => {
const addons = headmatter?.addons as string[]
if (!addons?.length)
return []
// if (!addons?.length)
// return []
const { userRoot } = await getRoots()
const roots = uniq([
...await resolveAddons(addons),
Expand Down

0 comments on commit 434df02

Please sign in to comment.