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.
1 parent 0ea6c36 commit 326d24aCopy full SHA for 326d24a
packages/compiler-sfc/src/compileScript.ts
@@ -126,7 +126,12 @@ export function compileScript(
126
)
127
}
128
if (options.babelParserPlugins) plugins.push(...options.babelParserPlugins)
129
- if (isTS) plugins.push('typescript', 'decorators-legacy')
+ if (isTS) {
130
+ plugins.push('typescript')
131
+ if (!plugins.includes('decorators')) {
132
+ plugins.push('decorators-legacy')
133
+ }
134
135
136
if (!scriptSetup) {
137
if (!script) {
0 commit comments