From 1cecab5507f952b8b67855331ede6c1139a1eca1 Mon Sep 17 00:00:00 2001 From: unofficial Date: Mon, 28 May 2018 17:36:08 +0800 Subject: [PATCH] fix: default parser was removed from prettier --- lib/template-compiler/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/template-compiler/index.js b/lib/template-compiler/index.js index 95d8ff00b..8fbb13880 100644 --- a/lib/template-compiler/index.js +++ b/lib/template-compiler/index.js @@ -77,7 +77,7 @@ module.exports = function (html) { // prettify render fn if (!isProduction) { - code = prettier.format(code, { semi: false }) + code = prettier.format(code, { semi: false, parser: 'babylon' }) } // mark with stripped (this enables Vue to use correct runtime proxy detection)