Fix v3 website (#12845)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-05-08 17:56:50 +08:00
1 parent 1b764933a8
commit 8b00726cd4
1 file changed
+3 -7
+3 -7
View File
@@ -52,15 +52,11 @@ function serializeAst(ast) {
async function handleMessage(message) { async function handleMessage(message) {
if (message.type === "meta") { if (message.type === "meta") {
const supportInfo = await prettier.getSupportInfo({ showUnreleased: true });
return { return {
type: "meta", type: "meta",
supportInfo: JSON.parse( supportInfo: JSON.parse(JSON.stringify(supportInfo)),
JSON.stringify(
prettier.getSupportInfo({
showUnreleased: true,
})
)
),
version: prettier.version, version: prettier.version,
}; };
} }