Skip to content

Commit 2f7f414

Browse files
edmorleyyyx990803
authored andcommitted
fix: Explicitly set the prettier parser to 'babylon' (#1323)
1 parent 6e6f38f commit 2f7f414

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
@@ -70,7 +70,7 @@ module.exports = function (html) {
7070

7171
// prettify render fn
7272
if (!isProduction) {
73-
code = prettier.format(code, { semi: false })
73+
code = prettier.format(code, { semi: false, parser: 'babylon' })
7474
}
7575

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

0 commit comments

Comments
 (0)