chore: fix wrong condition in 3ff83694

This commit is contained in:
Evan You 2022-06-30 10:39:14 +08:00
parent 2eb332258d
commit fb3bfde264

View File

@ -187,7 +187,7 @@ export function compileScript(
if (options.babelParserPlugins) plugins.push(...options.babelParserPlugins)
if (isTS) {
plugins.push('typescript')
if (plugins.includes('decorators')) {
if (!plugins.includes('decorators')) {
plugins.push('decorators-legacy')
}
}