From cd985c9a6e9e01b1cadaa1422bd6e83b8a9d2c12 Mon Sep 17 00:00:00 2001 From: tycho Date: Thu, 12 Sep 2024 18:05:15 +0800 Subject: [PATCH] fix(sfc-playground): remove comments in PROD mode to align with default behavior --- packages-private/sfc-playground/src/App.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages-private/sfc-playground/src/App.vue b/packages-private/sfc-playground/src/App.vue index 9ae0ecd9236..a2d79473b06 100644 --- a/packages-private/sfc-playground/src/App.vue +++ b/packages-private/sfc-playground/src/App.vue @@ -62,6 +62,7 @@ const sfcOptions = computed( compilerOptions: { isCustomElement: (tag: string) => tag === 'mjx-container' || tag.startsWith('custom-'), + comments: !productionMode.value, }, }, }),