Skip to content

Commit 03b13a7

Browse files
CasparChouyyx990803
authored andcommitted
fix: default parser was removed from prettier (#1319)
1 parent ff03061 commit 03b13a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/template-compiler/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module.exports = function (html) {
7777

7878
// prettify render fn
7979
if (!isProduction) {
80-
code = prettier.format(code, { semi: false })
80+
code = prettier.format(code, { semi: false, parser: 'babylon' })
8181
}
8282

8383
// mark with stripped (this enables Vue to use correct runtime proxy detection)

0 commit comments

Comments
 (0)