Skip to content

Commit 694007a

Browse files
authored
Merge branch 'main' into main
2 parents 3750275 + fb3bfde commit 694007a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
]
4747
},
4848
"engines": {
49-
"node": ">=16.5.0"
49+
"node": ">=16.11.0"
5050
},
5151
"devDependencies": {
5252
"@babel/types": "^7.12.0",

packages/compiler-sfc/src/compileScript.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,12 @@ export function compileScript(
185185
)
186186
}
187187
if (options.babelParserPlugins) plugins.push(...options.babelParserPlugins)
188-
if (isTS) plugins.push('typescript', 'decorators-legacy')
188+
if (isTS) {
189+
plugins.push('typescript')
190+
if (!plugins.includes('decorators')) {
191+
plugins.push('decorators-legacy')
192+
}
193+
}
189194

190195
if (!scriptSetup) {
191196
if (!script) {

0 commit comments

Comments
 (0)