Skip to content

Commit

Permalink
fix: compiler missing plugin decorators-legacy (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsuk1ko committed Nov 1, 2022
1 parent d9978fd commit 717af2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile.ts
Expand Up @@ -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'

Expand Down

0 comments on commit 717af2f

Please sign in to comment.