From 717af2f4bc1b5bd549339179bc5b75dbbd9a348a 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:55:23 +0800 Subject: [PATCH] fix: compiler missing plugin `decorators-legacy` (#138) --- 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'