diff --git a/packages/compiler-sfc/package.json b/packages/compiler-sfc/package.json index 637c2568fc5..4a3e07a8218 100644 --- a/packages/compiler-sfc/package.json +++ b/packages/compiler-sfc/package.json @@ -30,5 +30,8 @@ "pug": "^3.0.2", "sass": "^1.52.3", "stylus": "^0.58.1" + }, + "optionalDependencies": { + "prettier": "^1.18.2 || ^2.0.0" } }