mirror of https://github.com/vuejs/core.git
fix(compiler-core): fix `resolveParserPlugins` decorators check (#9566)
close #9560
This commit is contained in:
parent
2c0414fdca
commit
9d0eba916f
|
@ -164,7 +164,7 @@ export function resolveParserPlugins(
|
|||
}
|
||||
if (lang === 'ts' || lang === 'tsx') {
|
||||
plugins.push(['typescript', { dts }])
|
||||
if (!plugins.includes('decorators')) {
|
||||
if (!userPlugins || !userPlugins.includes('decorators')) {
|
||||
plugins.push('decorators-legacy')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue