Skip to content

Commit ed33515

Browse files
committed
fix: hoistedTags may not always be present (close #35)
1 parent 1118327 commit ed33515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/webpack/markdownLoader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module.exports = function (src) {
7878
`<template>\n` +
7979
`<div class="content">${html}</div>\n` +
8080
`</template>\n` +
81-
hoistedTags.join('\n')
81+
(hoistedTags || []).join('\n')
8282
)
8383
cache.set(key, res)
8484
return res

0 commit comments

Comments
 (0)