Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Aug 16, 2024
1 parent b6719fe commit ae913b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/slidev/node/vite/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function createSlidesLoader(

let skipHmr: { filePath: string, fileContent: string } | null = null

const { data, clientRoot, roots, mode, utils } = options
const { data, mode, utils } = options

function getSourceId(index: number, type: 'md' | 'frontmatter') {
return `${data.slides[index].source.filepath}__slidev_${index + 1}.${type}`
Expand Down Expand Up @@ -213,7 +213,7 @@ export function createSlidesLoader(
}

Object.assign(data, newData)
Object.assign(utils, createDataUtils(newData, clientRoot, roots))
Object.assign(utils, createDataUtils(options))

if (hmrSlidesIndexes.size > 0)
moduleIds.add(templateTitleRendererMd.id)
Expand Down

0 comments on commit ae913b7

Please sign in to comment.