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)