We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3750275 + fb3bfde commit 694007aCopy full SHA for 694007a
package.json
@@ -46,7 +46,7 @@
46
]
47
},
48
"engines": {
49
- "node": ">=16.5.0"
+ "node": ">=16.11.0"
50
51
"devDependencies": {
52
"@babel/types": "^7.12.0",
packages/compiler-sfc/src/compileScript.ts
@@ -185,7 +185,12 @@ export function compileScript(
185
)
186
}
187
if (options.babelParserPlugins) plugins.push(...options.babelParserPlugins)
188
- if (isTS) plugins.push('typescript', 'decorators-legacy')
+ if (isTS) {
189
+ plugins.push('typescript')
190
+ if (!plugins.includes('decorators')) {
191
+ plugins.push('decorators-legacy')
192
+ }
193
194
195
if (!scriptSetup) {
196
if (!script) {
0 commit comments