Skip to content

Commit 6d8dfe9

Browse files
committed
Don't assume fileAbsolutePath will always be there
1 parent 5f04a84 commit 6d8dfe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function createPlugin() {
9090
const possibleThemes = await getPossibleThemes(
9191
theme,
9292
await cache.get('themes'),
93-
path.dirname(markdownNode.fileAbsolutePath),
93+
markdownNode.fileAbsolutePath ? path.dirname(markdownNode.fileAbsolutePath) : null,
9494
markdownNode,
9595
node,
9696
languageName,

0 commit comments

Comments
 (0)