We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81eef30 commit 54efcb8Copy full SHA for 54efcb8
packages/@vuepress/markdown-loader/index.js
@@ -50,7 +50,7 @@ module.exports = function (src) {
50
const cachedData = devCache.get(file)
51
if (cachedData && (
52
cachedData.inferredTitle !== inferredTitle ||
53
- JSON.stringify(cachedData.frontmatter) !== JSON.stringify(frontmatter) ||
+ JSON.stringify(cachedData.frontmatterData) !== JSON.stringify(frontmatter.data) ||
54
headersChanged(cachedData.headers, headers)
55
)) {
56
// frontmatter changed... need to do a full reload
@@ -59,7 +59,7 @@ module.exports = function (src) {
59
60
devCache.set(file, {
61
headers,
62
- frontmatter,
+ frontmatterData: frontmatter.data,
63
inferredTitle
64
})
65
}
0 commit comments