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'