Skip to content

Commit 9f49243

Browse files
committed
fix: should call createDataUtils correctly
1 parent ca81faa commit 9f49243

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/slidev/node/vite/loaders.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function createSlidesLoader(
4444

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

47-
const { data, clientRoot, roots, mode, utils } = options
47+
const { data, mode, utils } = options
4848

4949
function getSourceId(index: number, type: 'md' | 'frontmatter') {
5050
return `${data.slides[index].source.filepath}__slidev_${index + 1}.${type}`
@@ -200,7 +200,7 @@ export function createSlidesLoader(
200200
}
201201

202202
Object.assign(data, newData)
203-
Object.assign(utils, createDataUtils(newData, clientRoot, roots))
203+
Object.assign(utils, createDataUtils(options))
204204

205205
if (hmrSlidesIndexes.size > 0)
206206
moduleIds.add(templateTitleRendererMd.id)

0 commit comments

Comments
 (0)