Skip to content

Commit

Permalink
fix: setupPreparser should be synchronous
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Oct 16, 2024
1 parent b074f1f commit 7130c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/slidev/node/setups/preparser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { resolveAddons } from '../integrations/addons'
import { getRoots } from '../resolver'
import { loadSetups } from './load'

export default async function setupPreparser() {
export default function setupPreparser() {
injectPreparserExtensionLoader(async (headmatter: Record<string, unknown>, filepath: string, mode?: string) => {
const addons = headmatter?.addons as string[]
if (!addons?.length)
Expand Down

0 comments on commit 7130c1d

Please sign in to comment.