We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fab1121 commit 7bede89Copy full SHA for 7bede89
packages/slidev/node/vite/loaders.ts
@@ -320,10 +320,8 @@ export function createSlidesLoader(
320
`export const frontmatterData = ${JSON.stringify(fontmatter)}`,
321
// handle HMR, update frontmatter with update
322
'if (import.meta.hot) {',
323
- ' const firstLoad = !import.meta.hot.data.frontmatter',
324
' import.meta.hot.data.frontmatter ??= reactive(frontmatterData)',
325
' import.meta.hot.accept(({ frontmatterData: update }) => {',
326
- ' if (firstLoad) return',
327
' const frontmatter = import.meta.hot.data.frontmatter',
328
' Object.keys(frontmatter).forEach(key => {',
329
' if (!(key in update)) delete frontmatter[key]',
0 commit comments