Skip to content

Commit 8f5b0cd

Browse files
committed
fix($core): SFC page compile error (close: #1110)
This is an issue caused by TSC compilation.
1 parent 01dd45b commit 8f5b0cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/@vuepress/shared-utils/src/parseVueFrontmatter.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @ts-ignore
2-
import compiler from 'vue-template-compiler'
32
import { parse as _parse } from '@vue/component-compiler-utils'
43
import parseFrontmatter from './parseFrontmatter'
54

@@ -11,7 +10,7 @@ export function parseStrippedFrontmatter (src: string) {
1110
export function parse (src: string) {
1211
const output = _parse({
1312
source: src,
14-
compiler,
13+
compiler: require('vue-template-compiler'),
1514
needMap: false
1615
})
1716
const find = output.customBlocks.find(block => block.type === 'frontmatter')

0 commit comments

Comments
 (0)