Skip to content

Commit

Permalink
fix($core): SFC page compile error (close: #1110)
Browse files Browse the repository at this point in the history
This is an issue caused by TSC compilation.
  • Loading branch information
ulivz committed Feb 3, 2019
1 parent 01dd45b commit 8f5b0cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/@vuepress/shared-utils/src/parseVueFrontmatter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @ts-ignore
import compiler from 'vue-template-compiler'
import { parse as _parse } from '@vue/component-compiler-utils'
import parseFrontmatter from './parseFrontmatter'

Expand All @@ -11,7 +10,7 @@ export function parseStrippedFrontmatter (src: string) {
export function parse (src: string) {
const output = _parse({
source: src,
compiler,
compiler: require('vue-template-compiler'),
needMap: false
})
const find = output.customBlocks.find(block => block.type === 'frontmatter')
Expand Down

0 comments on commit 8f5b0cd

Please sign in to comment.