From 7d8d30eef1aa6a1729e8f38d3af25fd2f50b38ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E4=BB=A3=E7=B6=BA=E5=87=9B?= Date: Tue, 1 Nov 2022 15:43:21 +0800 Subject: [PATCH] fix: compilation missing plugin "decorators-legacy" --- src/compile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile.ts b/src/compile.ts index 18eebf5..73e0eed 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -130,7 +130,7 @@ export function compileVueCode(code: string) { content = rewriteDefault( script.content, '_sfc_main', - script.lang === 'ts' ? ['typescript'] : undefined + script.lang === 'ts' ? ['typescript', 'decorators-legacy'] : undefined ) content += '\nexport default _sfc_main\n'