Skip to content

Commit

Permalink
fix(compiler-core): fix resolveParserPlugins decorators check (#9566)
Browse files Browse the repository at this point in the history
close #9560
  • Loading branch information
Alfred-Skyblue committed Nov 9, 2023
1 parent 2c0414f commit 9d0eba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/script/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
Expand Down

0 comments on commit 9d0eba9

Please sign in to comment.