Skip to content

Commit

Permalink
fix: sourcemap warning
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 24, 2022
1 parent 6fff8c2 commit 6444ad6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/slidev/node/plugins/loaders.ts
Expand Up @@ -245,10 +245,17 @@ export function createSlidesLoader(
if (match) {
const [, no, type] = match
const pageNo = parseInt(no) - 1
if (type === 'md')
return data.slides[pageNo]?.content
if (type === 'md') {
return {
code: data.slides[pageNo]?.content,
map: {},
}
}
}
return {
code: '',
map: {},
}
return ''
}
},
},
Expand Down

0 comments on commit 6444ad6

Please sign in to comment.